From: notaz Date: Sun, 9 Dec 2012 17:26:15 +0000 (+0200) Subject: avoid bogus warning X-Git-Tag: r18~51 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ad120c9c4dca424feac32098cb4af6a2c8f641f;p=pcsx_rearmed.git avoid bogus warning --- diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index db902b04..27663f1f 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);