[XAM] Fixed XexGetModuleHandle

This commit is contained in:
Adrian 2023-06-15 22:11:49 +01:00 committed by Radosław Gliński
parent 6a23f1457b
commit 68b2174378
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ dword_result_t XexGetModuleHandle(std::string module_name,
dword_result_t XexGetModuleHandle_entry(lpstring_t module_name, dword_result_t XexGetModuleHandle_entry(lpstring_t module_name,
lpdword_t hmodule_ptr) { 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); DECLARE_XBOXKRNL_EXPORT1(XexGetModuleHandle, kModules, kImplemented);