Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
cda4fa29
Commit
cda4fa29
authored
May 26, 2020
by
Paul Gofman
Committed by
Alexandre Julliard
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement KeRevertToUserAffinityThread() function.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d4f4783
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+1
-1
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+11
-1
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
cda4fa29
...
...
@@ -2485,7 +2485,7 @@ KAFFINITY WINAPI KeSetSystemAffinityThreadEx(KAFFINITY affinity)
*/
void
WINAPI
KeRevertToUserAffinityThread
(
void
)
{
FIXME
(
"() stub
\n
"
);
KeRevertToUserAffinityThreadEx
(
0
);
}
void
WINAPI
KeRevertToUserAffinityThreadEx
(
KAFFINITY
affinity
)
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
cda4fa29
...
...
@@ -1766,7 +1766,17 @@ static void test_affinity(void)
mask
=
pKeSetSystemAffinityThreadEx
(
0x1
);
ok
(
mask
==
mask_all_cpus
,
"Got unexpected mask %#lx.
\n
"
,
mask
);
pKeRevertToUserAffinityThreadEx
(
mask_all_cpus
);
pKeRevertToUserAffinityThreadEx
(
0
);
mask
=
pKeSetSystemAffinityThreadEx
(
0x1
);
ok
(
!
mask
,
"Got unexpected mask %#lx.
\n
"
,
mask
);
KeRevertToUserAffinityThread
();
mask
=
pKeSetSystemAffinityThreadEx
(
0x1
);
ok
(
!
mask
,
"Got unexpected mask %#lx.
\n
"
,
mask
);
KeRevertToUserAffinityThread
();
}
static
NTSTATUS
main_test
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
,
IO_STACK_LOCATION
*
stack
)
...
...
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