winspool.drv/tests: Fix a test failure on NT4 and below.
This commit is contained in:
parent
b91cf321ea
commit
b0da2a2e48
|
@ -1222,6 +1222,11 @@ static void test_EnumPrinterDrivers(void)
|
||||||
skip("no printer drivers found\n");
|
skip("no printer drivers found\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (GetLastError() == ERROR_INVALID_ENVIRONMENT)
|
||||||
|
{
|
||||||
|
win_skip("NT4 and below don't support the 'all' environment value\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER, "unexpected error %u\n", GetLastError());
|
ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER, "unexpected error %u\n", GetLastError());
|
||||||
|
|
||||||
buffer = HeapAlloc(GetProcessHeap(), 0, pcbNeeded);
|
buffer = HeapAlloc(GetProcessHeap(), 0, pcbNeeded);
|
||||||
|
|
Loading…
Reference in New Issue