mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Common: check against MAP_FAILED on every Unix after mmap()
This is required by POSIX but may matter only in MAX_FIXED case.
This commit is contained in:
parent
b24b12f4a0
commit
2eb1d578dd
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void* AllocateExecutableMemory(size_t size, bool exec)
|
|||
// printf("Mapped executable memory at %p (size %ld)\n", ptr,
|
||||
// (unsigned long)size);
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#if !defined(_WIN32) && !defined(__SYMBIAN32__)
|
||||
if (ptr == MAP_FAILED)
|
||||
{
|
||||
ptr = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue