mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 10:20:21 +00:00
Avoid zero size allocations.
This commit is contained in:
parent
deca2502d6
commit
7d2f5a7b15
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue