[xboxkrnl] Fix up XexGetProcedureAddress logging.

[xboxkrnl] Fix up XexGetProcedureAddress failure logging.
This commit is contained in:
gibbed 2022-01-07 06:14:44 -06:00 committed by Rick Gibbed
parent 4303f6b200
commit fa774f1d86
1 changed files with 9 additions and 1 deletions

View File

@ -166,7 +166,15 @@ dword_result_t XexGetProcedureAddress(lpvoid_t hmodule, dword_t ordinal,
*out_function_ptr = ptr;
result = X_STATUS_SUCCESS;
} else {
XELOGW("ERROR: XexGetProcedureAddress ordinal not found!");
if (is_string_name) {
XELOGW("ERROR: XexGetProcedureAddress export '{}' in '{}' not found!",
string_name, module->name());
} else {
XELOGW(
"ERROR: XexGetProcedureAddress ordinal {} (0x{:X}) in '{}' not "
"found!",
ordinal, ordinal, module->name());
}
*out_function_ptr = 0;
result = X_STATUS_DRIVER_ENTRYPOINT_NOT_FOUND;
}