Skip to content

Commit

Permalink
ntdll, server: Check the value of WINEESYNC instead of just the prese…
Browse files Browse the repository at this point in the history
…nce.

People keep getting tripped up by this.
  • Loading branch information
zfigura committed Aug 19, 2018
1 parent a8179f1 commit 37aa9e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dlls/ntdll/esync.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int do_esync(void)
static int do_esync_cached = -1;

if (do_esync_cached == -1)
do_esync_cached = (getenv("WINEESYNC") != NULL);
do_esync_cached = getenv("WINEESYNC") && atoi(getenv("WINEESYNC"));

return do_esync_cached;
#else
Expand Down
2 changes: 1 addition & 1 deletion server/esync.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int do_esync(void)
static int do_esync_cached = -1;

if (do_esync_cached == -1)
do_esync_cached = (getenv("WINEESYNC") != NULL);
do_esync_cached = getenv("WINEESYNC") && atoi(getenv("WINEESYNC"));

return do_esync_cached;
#else
Expand Down

0 comments on commit 37aa9e1

Please sign in to comment.