Fix error messages

This commit is contained in:
momo5502 2022-11-09 20:19:28 +01:00
parent 9a7b72dcd5
commit 44eecdd76b
3 changed files with 3 additions and 3 deletions

View File

@ -215,7 +215,7 @@ namespace steam_proxy
catch (std::exception& e)
{
printf("Steam: %s\n", e.what());
MessageBoxA(GetForegroundWindow(), e.what(), "BOIII Error", MB_ICONERROR);
MessageBoxA(nullptr, e.what(), "BOIII Error", MB_ICONERROR | MB_SETFOREGROUND | MB_TOPMOST);
TerminateProcess(GetCurrentProcess(), 1234);
}

View File

@ -107,7 +107,7 @@ namespace loader
const auto target = utils::nt::library::load(filename);
if (!target)
{
throw std::runtime_error{"Failed to map binary!"};
throw std::runtime_error{"Failed to map: " + filename};
}
load_imports(target);

View File

@ -179,7 +179,7 @@ namespace
}
catch (std::exception& e)
{
MessageBoxA(GetForegroundWindow(), e.what(), "ERROR", MB_ICONERROR);
MessageBoxA(nullptr, e.what(), "ERROR", MB_ICONERROR | MB_SETFOREGROUND | MB_TOPMOST);
return 1;
}
}