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
cb0607ce
Commit
cb0607ce
authored
Aug 29, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix the GetThreadPriorityBoost return value.
parent
7bf8d057
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
thread.c
dlls/kernel32/tests/thread.c
+5
-6
thread.c
dlls/kernel32/thread.c
+1
-1
No files found.
dlls/kernel32/tests/thread.c
View file @
cb0607ce
...
@@ -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 */
...
...
dlls/kernel32/thread.c
View file @
cb0607ce
...
@@ -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
;
}
}
...
...
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