Commit 3cb62c65 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

Fix for GetPrinterDriverDirectoryA test.

parent c3bb8422
......@@ -122,6 +122,11 @@ static void test_printer_directory(void)
trace("GetPrinterDriverDirectoryA: first call returned 0x%04x, "
"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);
res = GetPrinterDriverDirectoryA(NULL, NULL, 1, buffer, cbBuf, &pcbNeeded);
......
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