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;