After trying a succession of tests on Jacob's machine, I think I've
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 2 Sep 2002 13:47:50 +0000 (13:47 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 2 Sep 2002 13:47:50 +0000 (13:47 +0000)
commit01f7687fdca37de33d86939d2ed0fcf5dfd695d0
tree41c7f44195ccce0e2b3e741183e3ea3a3ec168ac
parentdfe3332b8f71e615a819a74fffa063c6fdb6f97f
After trying a succession of tests on Jacob's machine, I think I've
finally isolated the _important_ difference between Romano Trampus's
working printing.c and my failing one: he ignores the error return
from the first exploratory how-big-does-my-buffer-need-to-be call to
EnumPrinters(), because not having enough buffer space counts as an
error condition. Hence I am officially a klutz, but this should now
work. (Also reverted ENUM_LEVEL to 1, again, because that seems to
be the choice of people whose code works.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1915 cda61777-01e9-0310-a592-d414129be87e
printing.c