Fix for GetPrinterDriverDirectoryA test.

This commit is contained in:
Stefan Leichter 2005-10-26 10:08:38 +00:00 committed by Alexandre Julliard
parent c3bb842237
commit 3cb62c6532
1 changed files with 5 additions and 0 deletions

View File

@ -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);