diff options
-rw-r--r-- | src/Mount/MainCom.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mount/MainCom.cpp b/src/Mount/MainCom.cpp index b527d428..e6945781 100644 --- a/src/Mount/MainCom.cpp +++ b/src/Mount/MainCom.cpp @@ -301,8 +301,10 @@ extern "C" int UacChangePwd (char *lpszVolume, Password *oldPassword, int old_pk {
CComPtr<ITrueCryptMainCom> tc;
int r;
+ CoInitialize (NULL);
+
if (ComGetInstance (hwndDlg, &tc))
{
WaitCursor ();
CComBSTR volumeBstr;
@@ -319,6 +321,8 @@ extern "C" int UacChangePwd (char *lpszVolume, Password *oldPassword, int old_pk }
else
r = -1;
+ CoUninitialize ();
+
return r;
}
|