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
2902d809
Commit
2902d809
authored
Feb 19, 2010
by
Erich Hoover
Committed by
Alexandre Julliard
Feb 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add test for 'all processors' flag on Vista and newer.
parent
fda39b20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
thread.c
dlls/kernel32/tests/thread.c
+5
-1
No files found.
dlls/kernel32/tests/thread.c
View file @
2902d809
...
...
@@ -780,7 +780,7 @@ static VOID test_GetThreadTimes(void)
static
VOID
test_thread_processor
(
void
)
{
HANDLE
curthread
,
curproc
;
DWORD_PTR
processMask
,
systemMask
;
DWORD_PTR
processMask
,
systemMask
,
retMask
;
SYSTEM_INFO
sysInfo
;
int
error
=
0
;
BOOL
is_wow64
;
...
...
@@ -803,6 +803,10 @@ static VOID test_thread_processor(void)
"SetThreadAffinityMask failed
\n
"
);
ok
(
SetThreadAffinityMask
(
curthread
,
processMask
+
1
)
==
0
,
"SetThreadAffinityMask passed for an illegal processor
\n
"
);
/* NOTE: Pre-Vista does not recognize the "all processors" flag (all bits set) */
retMask
=
SetThreadAffinityMask
(
curthread
,
~
0UL
);
ok
(
broken
(
retMask
==
0
)
||
retMask
==
processMask
,
"SetThreadAffinityMask(thread,-1) failed to request all processors.
\n
"
);
/* NOTE: This only works on WinNT/2000/XP) */
if
(
pSetThreadIdealProcessor
)
{
SetLastError
(
0xdeadbeef
);
...
...
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