From a8112b8373a9cd9c4c481895179f6b31db33d967 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 27 Dec 2014 11:18:58 +0100 Subject: 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. --- src/Common/Exception.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Common/Exception.h') diff --git a/src/Common/Exception.h b/src/Common/Exception.h index e034404b..e5d4fd4c 100644 --- a/src/Common/Exception.h +++ b/src/Common/Exception.h @@ -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 -- cgit v1.2.3