winspool: Avoid reading from NULL (GetPrinterDriver).

This commit is contained in:
Detlef Riekenberg 2006-04-09 01:11:35 +02:00 committed by Alexandre Julliard
parent 26f6a30f58
commit 9243cb349e
1 changed files with 1 additions and 1 deletions

View File

@ -3438,7 +3438,7 @@ static BOOL WINSPOOL_GetPrinterDriver(HANDLE hPrinter, LPWSTR pEnvironment,
RegCloseKey(hkeyDrivers);
if(pcbNeeded) *pcbNeeded = size + needed;
TRACE("buffer space %ld required %ld\n", cbBuf, *pcbNeeded);
TRACE("buffer space %ld required %ld\n", cbBuf, size + needed);
if(cbBuf >= needed) return TRUE;
SetLastError(ERROR_INSUFFICIENT_BUFFER);
return FALSE;