mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-24 13:49:22 +01:00
Fix message box being used by accident in preload_executable
This commit is contained in:
parent
c90434962f
commit
3346400775
@ -448,7 +448,7 @@ bool preload_executable(PreloadContext& context) {
|
|||||||
|
|
||||||
context.mapping_handle = CreateFileMappingW(context.handle, nullptr, PAGE_READONLY, 0, 0, nullptr);
|
context.mapping_handle = CreateFileMappingW(context.handle, nullptr, PAGE_READONLY, 0, 0, nullptr);
|
||||||
if (context.mapping_handle == nullptr) {
|
if (context.mapping_handle == nullptr) {
|
||||||
recompui::message_box("Failed to create file mapping of executable!");
|
fprintf(stderr, "Failed to create file mapping of executable!");
|
||||||
CloseHandle(context.handle);
|
CloseHandle(context.handle);
|
||||||
context = {};
|
context = {};
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user