Skip to content

Commit

Permalink
ntdll: Correctly allocate the esync handle cache.
Browse files Browse the repository at this point in the history
Fixes a regression introduced by 7b583a3.

Should hopefully fix wine-mirror#7.
  • Loading branch information
zfigura authored and kakra committed Sep 18, 2018
1 parent d438219 commit 9a5b23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/ntdll/esync.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static struct esync *add_to_list( HANDLE handle, enum esync_type type, int fd, v
if (!entry) esync_list[0] = esync_list_initial_block;
else
{
void *ptr = wine_anon_mmap( NULL, ESYNC_LIST_BLOCK_SIZE * sizeof(struct esync *),
void *ptr = wine_anon_mmap( NULL, ESYNC_LIST_BLOCK_SIZE * sizeof(struct esync),
PROT_READ | PROT_WRITE, 0 );
if (ptr == MAP_FAILED) return FALSE;
esync_list[entry] = ptr;
Expand Down

0 comments on commit 9a5b23c

Please sign in to comment.