From 68b2174378b9f9cae1b3fb585ffa8c82eb138f5f Mon Sep 17 00:00:00 2001 From: Adrian <78108584+AdrianCassar@users.noreply.github.com> Date: Thu, 15 Jun 2023 22:11:49 +0100 Subject: [PATCH] [XAM] Fixed XexGetModuleHandle --- src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc index 061d44cb1..65914b379 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc @@ -63,7 +63,8 @@ dword_result_t XexGetModuleHandle(std::string module_name, dword_result_t XexGetModuleHandle_entry(lpstring_t module_name, lpdword_t hmodule_ptr) { - return XexGetModuleHandle(module_name.value(), hmodule_ptr); + return XexGetModuleHandle(module_name ? module_name.value() : "", + hmodule_ptr); } DECLARE_XBOXKRNL_EXPORT1(XexGetModuleHandle, kModules, kImplemented);