Commit f5ecb721 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

winspool.drv/tests: Skip EnumPrintersW tests when not implemented.

parent 0995a6ea
...@@ -1670,6 +1670,13 @@ static void test_EnumPrinters(void) ...@@ -1670,6 +1670,13 @@ static void test_EnumPrinters(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
neededW = -1; neededW = -1;
ret = EnumPrintersW(PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &neededW, &num); ret = EnumPrintersW(PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &neededW, &num);
/* EnumPrintersW is not supported on all platforms */
if (!ret && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{
trace("EnumPrintersW is not implemented, skipping some tests\n");
return;
}
if (!ret) if (!ret)
{ {
/* We have 1 or more printers */ /* We have 1 or more printers */
......
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