mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Fix error message on import hook fail (#957)
This commit is contained in:
parent
38e3a8e7f5
commit
e9147387c7
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ void* utils::loaded_module::get_imported_function_pointer(const char* pcszDllNam
|
|||
if (void* ppImportTableItem{}; find_imported_function_pointer(pcszDllName, pcszFunctionName, hintOrOrdinal, ppImportTableItem))
|
||||
return ppImportTableItem;
|
||||
|
||||
throw std::runtime_error("Failed to find import for kernel32!OpenProcess.");
|
||||
throw std::runtime_error(std::format("Failed to find import for {}!{} ({}).", pcszDllName, pcszFunctionName ? pcszFunctionName : "<unnamed>", hintOrOrdinal));
|
||||
}
|
||||
|
||||
utils::loaded_module utils::loaded_module::current_process() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue