Tartarus CVS: putty simon

tartarus-commits@lists.tartarus.org tartarus-commits@lists.tartarus.org
Mon, 02 Sep 2002 14:47:51 +0100


CVSROOT:	/home/cvs
Module name:	putty
Changes by:	simon	02/09/02 14:47:51

Modified files:
	.              : printing.c 

Log message:
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.)