diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-11-26 19:14:21 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-11-26 19:23:11 +0100 |
commit | 9666dda282baf2d1e2b760c3e2787a10d6313065 (patch) | |
tree | c83ca5b085cd9c55008ec946433eb853c680c372 /src/Common/Volumes.c | |
parent | 2408edb2390a56a78cec0ee15dc2f413f7440af1 (diff) | |
download | VeraCrypt-9666dda282baf2d1e2b760c3e2787a10d6313065.tar.gz VeraCrypt-9666dda282baf2d1e2b760c3e2787a10d6313065.zip |
Windows: solve GUI issues caused by using ANSI string instead of UNICODE ones. Remove Unused functions.
Diffstat (limited to 'src/Common/Volumes.c')
-rw-r--r-- | src/Common/Volumes.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Common/Volumes.c b/src/Common/Volumes.c index 051a9ecf..3f0c5b67 100644 --- a/src/Common/Volumes.c +++ b/src/Common/Volumes.c @@ -1013,17 +1013,17 @@ int CreateVolumeHeaderInMemory (HWND hwndDlg, BOOL bBoot, char *header, int ea, MasterKeyGUIView[0] = 0;
for (i = 0; i < j; i++)
{
- char tmp2[8] = {0};
- StringCbPrintfA (tmp2, sizeof(tmp2), "%02X", (int) (unsigned char) keyInfo.master_keydata[i + primaryKeyOffset]);
- StringCbCatA (MasterKeyGUIView, sizeof(MasterKeyGUIView), tmp2);
+ wchar_t tmp2[8] = {0};
+ StringCbPrintfW (tmp2, sizeof(tmp2), L"%02X", (int) (unsigned char) keyInfo.master_keydata[i + primaryKeyOffset]);
+ StringCbCatW (MasterKeyGUIView, sizeof(MasterKeyGUIView), tmp2);
}
HeaderKeyGUIView[0] = 0;
for (i = 0; i < NBR_KEY_BYTES_TO_DISPLAY; i++)
{
- char tmp2[8];
- StringCbPrintfA (tmp2, sizeof(tmp2), "%02X", (int) (unsigned char) dk[primaryKeyOffset + i]);
- StringCbCatA (HeaderKeyGUIView, sizeof(HeaderKeyGUIView), tmp2);
+ wchar_t tmp2[8];
+ StringCbPrintfW (tmp2, sizeof(tmp2), L"%02X", (int) (unsigned char) dk[primaryKeyOffset + i]);
+ StringCbCatW (HeaderKeyGUIView, sizeof(HeaderKeyGUIView), tmp2);
}
if (dots3)
|