Skip to content

Commit

Permalink
ntdll: Fix a couple of misplaced global variables.
Browse files Browse the repository at this point in the history
There's no reason these should be global, and in particular, this means that esync_pulse_event() might end up writing 0, which raises the likelihood of a missed wakeup from "probable" to "certain".

Fixes #10.
  • Loading branch information
zfigura committed May 10, 2019
1 parent 76d842a commit 77e5758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlls/ntdll/esync.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ NTSTATUS esync_set_event( HANDLE handle, LONG *prev )

NTSTATUS esync_reset_event( HANDLE handle, LONG *prev )
{
static uint64_t value;
uint64_t value;
struct esync *obj;
struct event *event;
LONG current;
Expand Down Expand Up @@ -620,7 +620,7 @@ NTSTATUS esync_reset_event( HANDLE handle, LONG *prev )

NTSTATUS esync_pulse_event( HANDLE handle, LONG *prev )
{
static uint64_t value = 1;
uint64_t value = 1;
struct esync *obj;
struct event *event;
LONG current;
Expand Down

0 comments on commit 77e5758

Please sign in to comment.