citra-emu/citra — pull request #52 by lioncash (2014-08-17 18:11:12+00:00)
Title: Common: Correctly set ptr to null if mmap fails in memory_util

On POSIX systems mmap will return MAP_FAILED (`(void*)-1`) and not a null pointer, so we ensure we set it accordingly (this was fixed upstream in Dolphin)