Use forground window as parent for errors

This commit is contained in:
momo5502 2022-11-09 18:18:39 +01:00
parent 72fe938a61
commit 699dd4bfcb

View File

@ -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;
}
}