Commit 7d2f5a7b authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid zero size allocations.

parent deca2502
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment