diff --git a/libs/wine/mmap.c b/libs/wine/mmap.c index d54250ed891..ba2589f6bf9 100644 --- a/libs/wine/mmap.c +++ b/libs/wine/mmap.c @@ -202,6 +202,8 @@ static void reserve_area( void *addr, void *end ) void *ptr; size_t size = (char *)end - (char *)addr; + if (!size) return; + if ((ptr = wine_anon_mmap( addr, size, PROT_NONE, MAP_NORESERVE )) != (void *)-1) { if (ptr == addr)