notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
psxbios: don't limit pointers to ram
[pcsx_rearmed.git]
/
frontend
/
switch
/
sys
/
mman.h
diff --git
a/frontend/switch/sys/mman.h
b/frontend/switch/sys/mman.h
index
49fb445
..
2e084a6
100644
(file)
--- a/
frontend/switch/sys/mman.h
+++ b/
frontend/switch/sys/mman.h
@@
-34,9
+34,9
@@
static inline void *mmap(void *addr, size_t len, int prot, int flags, int fd, of
//printf("mmap failed\n");
addr = aligned_alloc(ALIGNMENT, len);
}
-
- if (addr)
-
memset(addr, 0, len);
+ if (!addr)
+ return MAP_FAILED;
+ memset(addr, 0, len);
return addr;
}