winspool.drv/tests: Fix a test failure on NT4 and below.

oldstable
Paul Vriens 2009-03-24 16:13:01 +01:00 committed by Alexandre Julliard
parent b91cf321ea
commit b0da2a2e48
1 changed files with 5 additions and 0 deletions

View File

@ -1222,6 +1222,11 @@ static void test_EnumPrinterDrivers(void)
skip("no printer drivers found\n");
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());
buffer = HeapAlloc(GetProcessHeap(), 0, pcbNeeded);