mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-21 22:29:23 +00:00
Fix check against return value of memset() in vm_acquire_fixed
This commit is contained in:
parent
f5a1a93d2c
commit
61e40b3e55
@ -136,7 +136,7 @@ int vm_acquire_fixed(void * addr, size_t size)
|
||||
return -1;
|
||||
|
||||
// Since I don't know the standard behavior of mmap(), zero-fill here
|
||||
if (memset(addr, 0, size) != 0)
|
||||
if (memset(addr, 0, size) != addr)
|
||||
return -1;
|
||||
#else
|
||||
// Unsupported
|
||||
|
Loading…
Reference in New Issue
Block a user