Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
073d7212
Commit
073d7212
authored
May 27, 2013
by
Dan Kegel
Committed by
Alexandre Julliard
May 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Make SetThreadPriorityBoost return success.
parent
90a9698f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
thread.c
dlls/kernel32/tests/thread.c
+6
-6
thread.c
dlls/kernel32/thread.c
+3
-7
No files found.
dlls/kernel32/tests/thread.c
View file @
073d7212
...
...
@@ -713,22 +713,22 @@ static VOID test_thread_priority(void)
0
,
curthreadId
);
ok
(
access_thread
!=
NULL
,
"OpenThread returned an invalid handle
\n
"
);
if
(
access_thread
!=
NULL
)
{
obey_ar
(
pSetThreadPriorityBoost
(
access_thread
,
1
)
==
0
);
todo_wine
obey_ar
(
pSetThreadPriorityBoost
(
access_thread
,
1
)
==
0
);
todo_wine
obey_ar
(
pGetThreadPriorityBoost
(
access_thread
,
&
disabled
)
==
0
);
ok
(
CloseHandle
(
access_thread
),
"Error Closing thread handle
\n
"
);
}
}
rc
=
pSetThreadPriorityBoost
(
curthread
,
1
);
ok
(
rc
!=
0
,
"error=%d
\n
"
,
GetLastError
());
todo_wine
{
rc
=
pSetThreadPriorityBoost
(
curthread
,
1
);
ok
(
rc
!=
0
,
"error=%d
\n
"
,
GetLastError
());
rc
=
pGetThreadPriorityBoost
(
curthread
,
&
disabled
);
ok
(
rc
!=
0
&&
disabled
==
1
,
"rc=%d error=%d disabled=%d
\n
"
,
rc
,
GetLastError
(),
disabled
);
rc
=
pSetThreadPriorityBoost
(
curthread
,
0
);
ok
(
rc
!=
0
,
"error=%d
\n
"
,
GetLastError
());
}
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
);
...
...
dlls/kernel32/thread.c
View file @
073d7212
...
...
@@ -357,18 +357,14 @@ BOOL WINAPI GetThreadPriorityBoost(
/**********************************************************************
* SetThreadPriorityBoost [KERNEL32.@] Sets priority boost for thread.
*
* Priority boost is not implemented. This function always returns
* FALSE and sets last error to ERROR_CALL_NOT_IMPLEMENTED
*
* RETURNS
* Always returns FALSE to indicate a failure
* Priority boost is not implemented, but we return TRUE
* anyway because some games crash otherwise.
*/
BOOL
WINAPI
SetThreadPriorityBoost
(
HANDLE
hthread
,
/* [in] Handle to thread */
BOOL
disable
)
/* [in] TRUE to disable priority boost */
{
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
return
TRUE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment