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
b9c62185
Commit
b9c62185
authored
Mar 25, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Support event functions on kernel objects.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f57a383d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
sync.c
dlls/ntoskrnl.exe/sync.c
+12
-4
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+0
-2
No files found.
dlls/ntoskrnl.exe/sync.c
View file @
b9c62185
...
...
@@ -224,7 +224,7 @@ POBJECT_TYPE ExEventObjectType = &event_type;
LONG
WINAPI
KeSetEvent
(
PRKEVENT
event
,
KPRIORITY
increment
,
BOOLEAN
wait
)
{
HANDLE
handle
;
U
LONG
ret
=
0
;
LONG
ret
=
0
;
TRACE
(
"event %p, increment %d, wait %u.
\n
"
,
event
,
increment
,
wait
);
...
...
@@ -238,7 +238,11 @@ LONG WINAPI KeSetEvent( PRKEVENT event, KPRIORITY increment, BOOLEAN wait )
}
else
{
FIXME
(
"unsupported on kernel objects
\n
"
);
if
((
handle
=
kernel_object_handle
(
event
,
EVENT_MODIFY_STATE
)))
{
NtSetEvent
(
handle
,
&
ret
);
NtClose
(
handle
);
}
event
->
Header
.
SignalState
=
TRUE
;
}
...
...
@@ -251,7 +255,7 @@ LONG WINAPI KeSetEvent( PRKEVENT event, KPRIORITY increment, BOOLEAN wait )
LONG
WINAPI
KeResetEvent
(
PRKEVENT
event
)
{
HANDLE
handle
;
U
LONG
ret
=
0
;
LONG
ret
=
0
;
TRACE
(
"event %p.
\n
"
,
event
);
...
...
@@ -265,7 +269,11 @@ LONG WINAPI KeResetEvent( PRKEVENT event )
}
else
{
FIXME
(
"unsupported on kernel objects
\n
"
);
if
((
handle
=
kernel_object_handle
(
event
,
EVENT_MODIFY_STATE
)))
{
NtResetEvent
(
handle
,
&
ret
);
NtClose
(
handle
);
}
event
->
Header
.
SignalState
=
FALSE
;
}
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
b9c62185
...
...
@@ -461,10 +461,8 @@ static void test_sync(void)
ok
(
ret
==
0
,
"got %#x
\n
"
,
ret
);
KeResetEvent
(
event
);
ret
=
wait_single
(
event
,
0
);
todo_wine
ok
(
ret
==
STATUS_TIMEOUT
,
"got %#x
\n
"
,
ret
);
ret
=
wait_single_handle
(
handle
,
0
);
todo_wine
ok
(
ret
==
STATUS_TIMEOUT
,
"got %#x
\n
"
,
ret
);
KeSetEvent
(
event
,
0
,
FALSE
);
...
...
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