kernel32/tests: Win9x returns a different last error.

This commit is contained in:
Paul Vriens 2008-01-24 13:18:58 +01:00 committed by Alexandre Julliard
parent e84daed485
commit 71f81bf1f5
1 changed files with 8 additions and 4 deletions

View File

@ -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");