kernel32/tests: Skip a test if needed.

This commit is contained in:
Paul Vriens 2008-10-22 13:01:25 +02:00 committed by Alexandre Julliard
parent dda38adce5
commit 61b84b0862
1 changed files with 5 additions and 0 deletions

View File

@ -187,7 +187,12 @@ static void test_GetLogicalDriveStringsW(void)
return;
}
SetLastError(0xdeadbeef);
size = pGetLogicalDriveStringsW(0, NULL);
if (size == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) {
win_skip("GetLogicalDriveStringsW not implemented\n");
return;
}
ok(size%4 == 1, "size = %d\n", size);
buf = HeapAlloc(GetProcessHeap(), 0, size*sizeof(WCHAR));