Hans Leidekker : kernel32: Fix two test failures on Win98 due to missing GetTempPathW.
Alexandre Julliard
julliard at winehq.org
Mon Jan 7 08:38:58 CST 2008
Module: wine
Branch: master
Commit: b7917bcfda8ad391813fb758acae8c19ca912936
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7917bcfda8ad391813fb758acae8c19ca912936
Author: Hans Leidekker <hans at it.vu.nl>
Date: Fri Jan 4 15:48:32 2008 +0100
kernel32: Fix two test failures on Win98 due to missing GetTempPathW.
---
dlls/kernel32/tests/change.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/tests/change.c b/dlls/kernel32/tests/change.c
index 3c5ace3..bb1f73d 100644
--- a/dlls/kernel32/tests/change.c
+++ b/dlls/kernel32/tests/change.c
@@ -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;
More information about the wine-cvs
mailing list