kernel32: Fix two test failures on Win98 due to missing GetTempPathW.

This commit is contained in:
Hans Leidekker 2008-01-04 15:48:32 +01:00 committed by Alexandre Julliard
parent 4d84eb26d0
commit b7917bcfda

View file

@ -387,7 +387,13 @@ static void test_readdirectorychanges(void)
return;
}
SetLastError(0xdeadbeef);
r = GetTempPathW( MAX_PATH, path );
if (!r && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{
skip("GetTempPathW is not implemented\n");
return;
}
ok( r != 0, "temp path failed\n");
if (!r)
return;
@ -600,8 +606,13 @@ static void test_readdirectorychanges_null(void)
skip("ReadDirectoryChangesW is not available\n");
return;
}
SetLastError(0xdeadbeef);
r = GetTempPathW( MAX_PATH, path );
if (!r && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{
skip("GetTempPathW is not implemented\n");
return;
}
ok( r != 0, "temp path failed\n");
if (!r)
return;