From 90bd57fe40e66fc829ecb01482d32d604b0df19c Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 25 Nov 2015 01:41:37 +0100 Subject: Windows: Full UNICODE rewrite and implement support for UNICODE passwords. --- src/Common/Exception.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Common/Exception.h') diff --git a/src/Common/Exception.h b/src/Common/Exception.h index d5958b26..cac6ddd2 100644 --- a/src/Common/Exception.h +++ b/src/Common/Exception.h @@ -64,7 +64,7 @@ namespace VeraCrypt void Show (HWND parent) const { string msgBody = "Parameter incorrect.\n\n\n(If you report a bug in connection with this, please include the following technical information in the bug report:\n" + string (SrcPos) + ")"; - MessageBox (parent, msgBody.c_str(), "VeraCrypt", MB_ICONERROR | MB_SETFOREGROUND); + MessageBoxA (parent, msgBody.c_str(), "VeraCrypt", MB_ICONERROR | MB_SETFOREGROUND); } const char *SrcPos; @@ -77,9 +77,9 @@ namespace VeraCrypt void Show (HWND parent) const { char szErrCode[16]; - StringCbPrintf (szErrCode, sizeof(szErrCode), "0x%.8X", LastError); + StringCbPrintfA (szErrCode, sizeof(szErrCode), "0x%.8X", LastError); string msgBody = "The Random Generator initialization failed.\n\n\n(If you report a bug in connection with this, please include the following technical information in the bug report:\n" + string (SrcPos) + "\nLast Error = " + string (szErrCode) + ")"; - MessageBox (parent, msgBody.c_str(), "VeraCrypt", MB_ICONERROR | MB_SETFOREGROUND); + MessageBoxA (parent, msgBody.c_str(), "VeraCrypt", MB_ICONERROR | MB_SETFOREGROUND); } const char *SrcPos; @@ -93,9 +93,9 @@ namespace VeraCrypt void Show (HWND parent) const { char szErrCode[16]; - StringCbPrintf (szErrCode, sizeof(szErrCode), "0x%.8X", LastError); + StringCbPrintfA (szErrCode, sizeof(szErrCode), "0x%.8X", LastError); string msgBody = "Windows Crypto API failed.\n\n\n(If you report a bug in connection with this, please include the following technical information in the bug report:\n" + string (SrcPos) + "\nLast Error = " + string (szErrCode) + ")"; - MessageBox (parent, msgBody.c_str(), "VeraCrypt", MB_ICONERROR | MB_SETFOREGROUND); + MessageBoxA (parent, msgBody.c_str(), "VeraCrypt", MB_ICONERROR | MB_SETFOREGROUND); } const char *SrcPos; -- cgit v1.2.3