VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Dlgcode.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-11-26 00:34:30 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-11-26 01:44:54 +0100
commit59611b8b378238e5a589a87061d06fe4f337d1a0 (patch)
tree5d16a47f96e70cd7c581880193b48f73c38485bc /src/Common/Dlgcode.h
parent90bd57fe40e66fc829ecb01482d32d604b0df19c (diff)
downloadVeraCrypt-59611b8b378238e5a589a87061d06fe4f337d1a0.tar.gz
VeraCrypt-59611b8b378238e5a589a87061d06fe4f337d1a0.zip
Windows: solve crash caused by system function FormatMessage failure on rare cases.
Diffstat (limited to 'src/Common/Dlgcode.h')
-rw-r--r--src/Common/Dlgcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Dlgcode.h b/src/Common/Dlgcode.h
index 2b6aee18..af983a63 100644
--- a/src/Common/Dlgcode.h
+++ b/src/Common/Dlgcode.h
@@ -562,7 +562,7 @@ std::string IntToString (int val);
std::wstring IntToWideString (int val);
inline std::wstring AppendSrcPos (const wchar_t* msg, const char* srcPos)
{
- return std::wstring (msg) + L"\n\nSource: " + SingleStringToWide (srcPos);
+ return std::wstring (msg? msg : L"") + L"\n\nSource: " + SingleStringToWide (srcPos);
}
// Display a wait dialog while calling the provided callback with the given parameter