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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Exception.h b/src/Common/Exception.h
index 5bf9395f..e034404b 100644
--- a/src/Common/Exception.h
+++ b/src/Common/Exception.h
@@ -35,12 +35,12 @@ namespace VeraCrypt
struct ErrorException : public Exception
{
ErrorException (char *langId) : ErrLangId (langId) { }
- ErrorException (const wstring &errMsg) : ErrMsg (errMsg) { }
+ ErrorException (const wstring &errMsg) : ErrLangId(NULL), ErrMsg (errMsg) { }
void Show (HWND parent) const
{
if (ErrMsg.empty())
- ::Error (ErrLangId);
+ ::Error (ErrLangId? ErrLangId : "");
else
::ErrorDirect (ErrMsg.c_str());
}