aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2012-12-09 19:26:15 +0200
committernotaz2012-12-09 19:26:15 +0200
commit8ad120c9c4dca424feac32098cb4af6a2c8f641f (patch)
treead39242e24562d22bebb4db4668533ac2fd456ca /libpcsxcore
parent40cf697566a4df3f20cf5b0f1f03b111c7e0d0f2 (diff)
downloadpcsx_rearmed-8ad120c9c4dca424feac32098cb4af6a2c8f641f.tar.gz
pcsx_rearmed-8ad120c9c4dca424feac32098cb4af6a2c8f641f.tar.bz2
pcsx_rearmed-8ad120c9c4dca424feac32098cb4af6a2c8f641f.zip
avoid bogus warning
Diffstat (limited to 'libpcsxcore')
-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);