aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/psxmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/psxmem.c')
-rw-r--r--libpcsxcore/psxmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c
index db902b0..27663f1 100644
--- a/libpcsxcore/psxmem.c
+++ b/libpcsxcore/psxmem.c
@@ -55,7 +55,7 @@ void *psxMap(unsigned long addr, size_t size, int is_fixed,
if (ret == MAP_FAILED)
return NULL;
- if (ret != req)
+ if (req != NULL && ret != req)
SysMessage("psxMap: warning: wanted to map @%p, got %p\n",
req, ret);