From 73228a4bf158586d01649a37eed5ab6bedd94360 Mon Sep 17 00:00:00 2001 From: omigamedev Date: Wed, 17 Oct 2018 00:28:35 +0200 Subject: [PATCH] set system message box on top when recovery --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 4de39a9..bb543ef 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -390,7 +390,7 @@ static void SetupExceptionHandler() GetFullPathNameA(path.c_str(), MAX_PATH, abspath, NULL); static char message[4096]; snprintf(message, sizeof(message), "File recovered in: %s", abspath); - MessageBoxA(NULL, message, "File Recovery", MB_OK | MB_ICONWARNING); + MessageBoxA(hWnd, message, "File Recovery", MB_OK | MB_ICONWARNING); } LogRemote::I.file_close(); }, 0);