Paul Vriens : kernel32/tests: Win9x returns a different last error.
Alexandre Julliard
julliard at winehq.org
Thu Jan 24 07:21:26 CST 2008
Module: wine
Branch: master
Commit: 71f81bf1f59422a5eaefbdca0060e211eb65b806
URL: http://source.winehq.org/git/wine.git/?a=commit;h=71f81bf1f59422a5eaefbdca0060e211eb65b806
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Thu Jan 24 13:18:58 2008 +0100
kernel32/tests: Win9x returns a different last error.
---
dlls/kernel32/tests/thread.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index 5989ccc..6812f16 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -601,8 +601,10 @@ static VOID test_thread_priority(void)
rc = SetThreadPriority(curthread,min_priority-1);
ok(rc == FALSE, "SetThreadPriority passed with a bad argument\n");
- ok(GetLastError() == ERROR_INVALID_PARAMETER,
- "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER (87)\n", GetLastError());
+ ok(GetLastError() == ERROR_INVALID_PARAMETER ||
+ GetLastError() == ERROR_INVALID_PRIORITY /* Win9x */,
+ "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER or ERROR_INVALID_PRIORITY\n",
+ GetLastError());
ok(GetThreadPriority(curthread)==min_priority,
"GetThreadPriority didn't return min_priority\n");
@@ -611,8 +613,10 @@ static VOID test_thread_priority(void)
rc = SetThreadPriority(curthread,max_priority+1);
ok(rc == FALSE, "SetThreadPriority passed with a bad argument\n");
- ok(GetLastError() == ERROR_INVALID_PARAMETER,
- "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER (87)\n", GetLastError());
+ ok(GetLastError() == ERROR_INVALID_PARAMETER ||
+ GetLastError() == ERROR_INVALID_PRIORITY /* Win9x */,
+ "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER or ERROR_INVALID_PRIORITY\n",
+ GetLastError());
ok(GetThreadPriority(curthread)==max_priority,
"GetThreadPriority didn't return max_priority\n");
More information about the wine-cvs
mailing list