From ec507dc2f629a7fc0f76d08c8ddf026f23fe07cc Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sun, 22 Nov 2020 14:34:09 +0300 Subject: [PATCH] [Memory] Fix forgotten kFileMappingHandleInvalid --- src/xenia/base/memory_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/base/memory_posix.cc b/src/xenia/base/memory_posix.cc index f2834fb9d..d4c0484ce 100644 --- a/src/xenia/base/memory_posix.cc +++ b/src/xenia/base/memory_posix.cc @@ -84,7 +84,7 @@ FileMappingHandle CreateFileMappingHandle(const std::filesystem::path& path, break; default: assert_always(); - return nullptr; + return kFileMappingHandleInvalid; } oflag |= O_CREAT; auto full_path = "/" / path;