From dece63e3519a9eb319e5ce988114ff90dcb85b10 Mon Sep 17 00:00:00 2001 From: gibbed Date: Fri, 20 Jan 2017 08:19:01 -0600 Subject: [PATCH] Return ERROR_PROC_NOT_FOUND, not ERROR_INVALID_ORDINAL, as failure from XexGetProcedureAddress. --- src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc index 9c5a1bd32..0aa0bb799 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc @@ -268,7 +268,7 @@ dword_result_t XexGetProcedureAddress(lpvoid_t hmodule, dword_t ordinal, } else { XELOGW("ERROR: XexGetProcedureAddress ordinal not found!"); *out_function_ptr = 0; - result = X_STATUS_DRIVER_ORDINAL_NOT_FOUND; + result = X_STATUS_DRIVER_ENTRYPOINT_NOT_FOUND; } }