diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-11-26 00:34:30 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-11-26 01:44:54 +0100 |
commit | 59611b8b378238e5a589a87061d06fe4f337d1a0 (patch) | |
tree | 5d16a47f96e70cd7c581880193b48f73c38485bc /src/Common/Dlgcode.h | |
parent | 90bd57fe40e66fc829ecb01482d32d604b0df19c (diff) | |
download | VeraCrypt-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.h | 2 |
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
|