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
6345787c
Commit
6345787c
authored
Nov 24, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement KeResetEvent().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
469c2fd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+0
-10
sync.c
dlls/ntoskrnl.exe/sync.c
+19
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
6345787c
...
...
@@ -2430,16 +2430,6 @@ ULONG WINAPI KeQueryTimeIncrement(void)
/***********************************************************************
* KeResetEvent (NTOSKRNL.EXE.@)
*/
LONG
WINAPI
KeResetEvent
(
PRKEVENT
Event
)
{
FIXME
(
"(%p): stub
\n
"
,
Event
);
return
0
;
}
/***********************************************************************
* KeSetPriorityThread (NTOSKRNL.EXE.@)
*/
KPRIORITY
WINAPI
KeSetPriorityThread
(
PKTHREAD
Thread
,
KPRIORITY
Priority
)
...
...
dlls/ntoskrnl.exe/sync.c
View file @
6345787c
...
...
@@ -144,3 +144,22 @@ LONG WINAPI KeSetEvent( PRKEVENT event, KPRIORITY increment, BOOLEAN wait )
return
ret
;
}
/***********************************************************************
* KeResetEvent (NTOSKRNL.EXE.@)
*/
LONG
WINAPI
KeResetEvent
(
PRKEVENT
event
)
{
HANDLE
handle
=
event
->
Header
.
WaitListHead
.
Blink
;
LONG
ret
;
TRACE
(
"event %p.
\n
"
,
event
);
EnterCriticalSection
(
&
sync_cs
);
ret
=
InterlockedExchange
(
&
event
->
Header
.
SignalState
,
FALSE
);
if
(
handle
)
ResetEvent
(
handle
);
LeaveCriticalSection
(
&
sync_cs
);
return
ret
;
}
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