Make XexGetModuleHandle set ptr to 0 on failure.

This commit is contained in:
Ben Vanik 2015-02-10 23:00:49 -08:00
parent 57919b2a11
commit e7dfbd5542
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ SHIM_CALL XexGetModuleHandle_shim(PPCContext* ppc_state, KernelState* state) {
module = state->GetModule(module_name);
}
if (!module) {
SHIM_SET_MEM_32(module_handle_ptr, 0);
SHIM_SET_RETURN_32(X_ERROR_NOT_FOUND);
return;
}