Fix for GetPrinterDriverDirectoryA test.
This commit is contained in:
parent
c3bb842237
commit
3cb62c6532
|
@ -122,6 +122,11 @@ static void test_printer_directory(void)
|
||||||
trace("GetPrinterDriverDirectoryA: first call returned 0x%04x, "
|
trace("GetPrinterDriverDirectoryA: first call returned 0x%04x, "
|
||||||
"buffer size 0x%08lx\n", res, cbBuf);
|
"buffer size 0x%08lx\n", res, cbBuf);
|
||||||
|
|
||||||
|
if (!cbBuf) {
|
||||||
|
trace("no valid buffer size returned, skipping tests\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
buffer = HeapAlloc( GetProcessHeap(), 0, cbBuf*2);
|
buffer = HeapAlloc( GetProcessHeap(), 0, cbBuf*2);
|
||||||
|
|
||||||
res = GetPrinterDriverDirectoryA(NULL, NULL, 1, buffer, cbBuf, &pcbNeeded);
|
res = GetPrinterDriverDirectoryA(NULL, NULL, 1, buffer, cbBuf, &pcbNeeded);
|
||||||
|
|
Loading…
Reference in New Issue