Commit 09401dd4 authored by Jeremy White's avatar Jeremy White Committed by Alexandre Julliard

winspool: Test for failure using correct size.

parent 7251e91d
......@@ -4447,7 +4447,7 @@ BOOL WINAPI GetPrinterDriverW(HANDLE hPrinter, LPWSTR pEnvironment,
if(pcbNeeded) *pcbNeeded = size + needed;
TRACE("buffer space %d required %d\n", cbBuf, size + needed);
if(cbBuf >= needed) return TRUE;
if(cbBuf >= size + needed) return TRUE;
SetLastError(ERROR_INSUFFICIENT_BUFFER);
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment