VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/MainCom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mount/MainCom.cpp')
-rw-r--r--src/Mount/MainCom.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Mount/MainCom.cpp b/src/Mount/MainCom.cpp
index 537a187f..829cd21f 100644
--- a/src/Mount/MainCom.cpp
+++ b/src/Mount/MainCom.cpp
@@ -100,13 +100,13 @@ public:
100 return BaseCom::CallDriver (ioctl, input, output); 100 return BaseCom::CallDriver (ioctl, input, output);
101 } 101 }
102 102
103 virtual int STDMETHODCALLTYPE ChangePassword (BSTR volumePath, Password *oldPassword, Password *newPassword, int pkcs5, LONG_PTR hWnd) 103 virtual int STDMETHODCALLTYPE ChangePassword (BSTR volumePath, Password *oldPassword, Password *newPassword, int pkcs5, int wipePassCount, LONG_PTR hWnd)
104 { 104 {
105 USES_CONVERSION; 105 USES_CONVERSION;
106 CW2A volumePathA(volumePath); 106 CW2A volumePathA(volumePath);
107 MainDlg = (HWND) hWnd; 107 MainDlg = (HWND) hWnd;
108 if (volumePathA.m_psz) 108 if (volumePathA.m_psz)
109 return ::ChangePwd (volumePathA.m_psz, oldPassword, newPassword, pkcs5, (HWND) hWnd); 109 return ::ChangePwd (volumePathA.m_psz, oldPassword, newPassword, pkcs5, wipePassCount,(HWND) hWnd);
110 else 110 else
111 return ERR_OUTOFMEMORY; 111 return ERR_OUTOFMEMORY;
112 } 112 }
@@ -261,7 +261,7 @@ extern "C" int UacRestoreVolumeHeader (HWND hwndDlg, char *lpszVolume)
261} 261}
262 262
263 263
264extern "C" int UacChangePwd (char *lpszVolume, Password *oldPassword, Password *newPassword, int pkcs5, HWND hwndDlg) 264extern "C" int UacChangePwd (char *lpszVolume, Password *oldPassword, Password *newPassword, int pkcs5, int wipePassCount, HWND hwndDlg)
265{ 265{
266 CComPtr<ITrueCryptMainCom> tc; 266 CComPtr<ITrueCryptMainCom> tc;
267 int r; 267 int r;
@@ -269,7 +269,7 @@ extern "C" int UacChangePwd (char *lpszVolume, Password *oldPassword, Password *
269 if (ComGetInstance (hwndDlg, &tc)) 269 if (ComGetInstance (hwndDlg, &tc))
270 { 270 {
271 WaitCursor (); 271 WaitCursor ();
272 r = tc->ChangePassword (CComBSTR (lpszVolume), oldPassword, newPassword, pkcs5, (LONG_PTR) hwndDlg); 272 r = tc->ChangePassword (CComBSTR (lpszVolume), oldPassword, newPassword, pkcs5, wipePassCount, (LONG_PTR) hwndDlg);
273 NormalCursor (); 273 NormalCursor ();
274 } 274 }
275 else 275 else