Alexandre Julliard : kernel32: Fix the GetThreadPriorityBoost return value.
Alexandre Julliard
julliard at winehq.org
Sat Aug 29 11:36:08 CDT 2009
Module: wine
Branch: master
Commit: cb0607ced2be5165a3c964f6215da86d5dfe1915
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cb0607ced2be5165a3c964f6215da86d5dfe1915
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Aug 29 12:22:13 2009 +0200
kernel32: Fix the GetThreadPriorityBoost return value.
---
dlls/kernel32/tests/thread.c | 11 +++++------
dlls/kernel32/thread.c | 2 +-
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index e80c63e..275f6aa 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -698,8 +698,7 @@ static VOID test_thread_priority(void)
return;
}
- todo_wine
- ok(rc!=0,"error=%d\n",GetLastError());
+ ok(rc!=0,"error=%d\n",GetLastError());
if (pOpenThread) {
/* check that access control is obeyed */
@@ -709,7 +708,7 @@ static VOID test_thread_priority(void)
ok(access_thread!=NULL,"OpenThread returned an invalid handle\n");
if (access_thread!=NULL) {
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");
}
}
@@ -723,10 +722,10 @@ static VOID test_thread_priority(void)
rc = pSetThreadPriorityBoost(curthread,0);
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 */
diff --git a/dlls/kernel32/thread.c b/dlls/kernel32/thread.c
index b037f44..0029e11 100644
--- a/dlls/kernel32/thread.c
+++ b/dlls/kernel32/thread.c
@@ -352,7 +352,7 @@ BOOL WINAPI GetThreadPriorityBoost(
PBOOL pstate) /* [out] pointer to var that receives the boost state */
{
if (pstate) *pstate = FALSE;
- return NO_ERROR;
+ return TRUE;
}
More information about the wine-cvs
mailing list