VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Exception.h')
-rw-r--r--src/Common/Exception.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Common/Exception.h b/src/Common/Exception.h
index e034404..e5d4fd4 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