diff --git a/src/client/main.cpp b/src/client/main.cpp index 2e02395f..f2d66387 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -174,7 +174,7 @@ namespace } catch (std::exception& e) { - MessageBoxA(nullptr, e.what(), "ERROR", MB_ICONERROR); + MessageBoxA(GetForegroundWindow(), e.what(), "ERROR", MB_ICONERROR); return 1; } }