diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-01-18 19:51:46 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-01-18 21:40:16 +0100 |
commit | 8a2d9c41206c156937f52d07e7a0b89f38444a44 (patch) | |
tree | f5ced6677e495d21dca828480de4f19259e426e7 /src/ExpandVolume/DlgExpandVolume.cpp | |
parent | 90957cd9d9681cc0a28f83f73ecfbe8811580df4 (diff) | |
download | VeraCrypt-8a2d9c41206c156937f52d07e7a0b89f38444a44.tar.gz VeraCrypt-8a2d9c41206c156937f52d07e7a0b89f38444a44.zip |
Windows: solve Expander GUI issues caused by latest Unicode modifications.
Diffstat (limited to 'src/ExpandVolume/DlgExpandVolume.cpp')
-rw-r--r-- | src/ExpandVolume/DlgExpandVolume.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ExpandVolume/DlgExpandVolume.cpp b/src/ExpandVolume/DlgExpandVolume.cpp index 67c76c61..ed198f09 100644 --- a/src/ExpandVolume/DlgExpandVolume.cpp +++ b/src/ExpandVolume/DlgExpandVolume.cpp @@ -214,7 +214,7 @@ BOOL CALLBACK ExpandVolSizeDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARA }
-extern "C" void AddProgressDlgStatus(HWND hwndDlg, const char* szText)
+extern "C" void AddProgressDlgStatus(HWND hwndDlg, const wchar_t* szText)
{
HWND hwndCtrl;
@@ -224,7 +224,7 @@ extern "C" void AddProgressDlgStatus(HWND hwndDlg, const char* szText) }
-extern "C" void SetProgressDlgStatus(HWND hwndDlg, const char* szText)
+extern "C" void SetProgressDlgStatus(HWND hwndDlg, const wchar_t* szText)
{
HWND hwndCtrl;
@@ -294,13 +294,13 @@ BOOL CALLBACK ExpandVolProgressDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, L if (nStatus != 0)
{
if ( nStatus != ERR_USER_ABORT )
- AddProgressDlgStatus (hwndDlg, "Error: volume expansion failed.");
+ AddProgressDlgStatus (hwndDlg, L"Error: volume expansion failed.");
else
- AddProgressDlgStatus (hwndDlg, "Error: operation aborted by user.");
+ AddProgressDlgStatus (hwndDlg, L"Error: operation aborted by user.");
}
else
{
- AddProgressDlgStatus (hwndDlg, "Finished. Volume successfully expanded.");
+ AddProgressDlgStatus (hwndDlg, L"Finished. Volume successfully expanded.");
}
SetWindowText (GetDlgItem (hwndDlg, IDOK), L"Exit");
@@ -368,7 +368,7 @@ BOOL CALLBACK ExpandVolProgressDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, L KillTimer (hwndDlg, TIMER_ID_RANDVIEW);
EnableWindow (GetDlgItem (hwndDlg, IDC_DISPLAY_POOL_CONTENTS), FALSE);
EnableWindow (GetDlgItem (hwndDlg, IDOK), FALSE);
- SetProgressDlgStatus (hwndDlg, "Starting volume expansion ...\r\n");
+ SetProgressDlgStatus (hwndDlg, L"Starting volume expansion ...\r\n");
bVolTransformStarted = TRUE;
pProgressDlgParam->hwndDlg = hwndDlg;
if ( _beginthread (volTransformThreadFunction, 0, pProgressDlgParam) == -1L )
|