[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-cvs
Subject: Paul Vriens : kernel32/tests: Win9x returns a different last error.
From: Alexandre Julliard <julliard () winehq ! org>
Date: 2008-01-24 13:21:26
Message-ID: E1JI21G-0001xL-8E () wine ! codeweavers ! com
[Download RAW message or body]
Module: wine
Branch: master
Commit: 71f81bf1f59422a5eaefbdca0060e211eb65b806
URL: http://source.winehq.org/git/wine.git/?a=commit;h=71f81bf1f59422a5eaefbdca0060e211eb65b806
Author: Paul Vriens <paul.vriens.wine@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");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic