mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-01-07 14:18:12 -06:00
Windows: use the correct window handle for creating message boxes. This became important after the introduction of the wait dialog in order to avoid having message boxes behind the wait dialog.
This commit is contained in:
@@ -40,9 +40,9 @@ namespace VeraCrypt
|
||||
void Show (HWND parent) const
|
||||
{
|
||||
if (ErrMsg.empty())
|
||||
::Error (ErrLangId? ErrLangId : "");
|
||||
::Error (ErrLangId? ErrLangId : "", parent);
|
||||
else
|
||||
::ErrorDirect (ErrMsg.c_str());
|
||||
::ErrorDirect (ErrMsg.c_str(), parent);
|
||||
}
|
||||
|
||||
char *ErrLangId;
|
||||
@@ -65,7 +65,7 @@ namespace VeraCrypt
|
||||
struct TimeOut : public Exception
|
||||
{
|
||||
TimeOut (const char *srcPos) { }
|
||||
void Show (HWND parent) const { ErrorDirect (L"Timeout"); }
|
||||
void Show (HWND parent) const { ErrorDirect (L"Timeout", parent); }
|
||||
};
|
||||
|
||||
struct UserAbort : public Exception
|
||||
|
||||
Reference in New Issue
Block a user