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);