winspool.drv: return maximum possible size of the buffer when no buffer specified
Alexandre Julliard
julliard at winehq.org
Mon Oct 4 10:03:21 CDT 2010
Vitaly Perov <vitperov at etersoft.ru> writes:
> @@ -1398,7 +1398,7 @@ static void convert_printerinfo_W_to_A(LPBYTE out, LPBYTE pPrintersW,
> dmA = DEVMODEdupWtoA(piW->pDevMode);
> if (dmA) {
> /* align DEVMODEA to a DWORD boundary */
> - len = (4 - ( (DWORD_PTR) ptr & 3)) & 3;
> + len = ptr ? (4 - ( (DWORD_PTR) ptr & 3)) & 3 : 3;
That doesn't make any sense.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list