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 wine-mirror#10.
  • Loading branch information
zfigura authored and imaami committed Aug 1, 2019
1 parent 26525bb commit b54e9eb
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 @@ -585,7 +585,7 @@ NTSTATUS esync_set_event( HANDLE handle )

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

NTSTATUS esync_pulse_event( HANDLE handle )
{
static uint64_t value = 1;
uint64_t value = 1;
struct esync *obj;
NTSTATUS ret;

Expand Down

0 comments on commit b54e9eb

Please sign in to comment.