Commit cb0607ce authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Fix the GetThreadPriorityBoost return value.

parent 7bf8d057
...@@ -698,8 +698,7 @@ static VOID test_thread_priority(void) ...@@ -698,8 +698,7 @@ static VOID test_thread_priority(void)
return; return;
} }
todo_wine ok(rc!=0,"error=%d\n",GetLastError());
ok(rc!=0,"error=%d\n",GetLastError());
if (pOpenThread) { if (pOpenThread) {
/* check that access control is obeyed */ /* check that access control is obeyed */
...@@ -709,7 +708,7 @@ static VOID test_thread_priority(void) ...@@ -709,7 +708,7 @@ static VOID test_thread_priority(void)
ok(access_thread!=NULL,"OpenThread returned an invalid handle\n"); ok(access_thread!=NULL,"OpenThread returned an invalid handle\n");
if (access_thread!=NULL) { if (access_thread!=NULL) {
obey_ar(pSetThreadPriorityBoost(access_thread,1)==0); obey_ar(pSetThreadPriorityBoost(access_thread,1)==0);
obey_ar(pGetThreadPriorityBoost(access_thread,&disabled)==0); todo_wine obey_ar(pGetThreadPriorityBoost(access_thread,&disabled)==0);
ok(CloseHandle(access_thread),"Error Closing thread handle\n"); ok(CloseHandle(access_thread),"Error Closing thread handle\n");
} }
} }
...@@ -723,10 +722,10 @@ static VOID test_thread_priority(void) ...@@ -723,10 +722,10 @@ static VOID test_thread_priority(void)
rc = pSetThreadPriorityBoost(curthread,0); rc = pSetThreadPriorityBoost(curthread,0);
ok( rc != 0, "error=%d\n",GetLastError()); ok( rc != 0, "error=%d\n",GetLastError());
rc=pGetThreadPriorityBoost(curthread,&disabled);
ok(rc!=0 && disabled==0,
"rc=%d error=%d disabled=%d\n",rc,GetLastError(),disabled);
} }
rc=pGetThreadPriorityBoost(curthread,&disabled);
ok(rc!=0 && disabled==0,
"rc=%d error=%d disabled=%d\n",rc,GetLastError(),disabled);
} }
/* check the GetThreadTimes function */ /* check the GetThreadTimes function */
......
...@@ -352,7 +352,7 @@ BOOL WINAPI GetThreadPriorityBoost( ...@@ -352,7 +352,7 @@ BOOL WINAPI GetThreadPriorityBoost(
PBOOL pstate) /* [out] pointer to var that receives the boost state */ PBOOL pstate) /* [out] pointer to var that receives the boost state */
{ {
if (pstate) *pstate = FALSE; if (pstate) *pstate = FALSE;
return NO_ERROR; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment