diff options
Diffstat (limited to 'CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp')
-rwxr-xr-x | CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp b/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp index 7cd5df95..8d63ee58 100755 --- a/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp +++ b/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp @@ -167,9 +167,7 @@ HRESULT CUpdateCallbackGUI::CryptoGetTextPassword2(Int32 *passwordIsDefined, BST } } *passwordIsDefined = BoolToInt(PasswordIsDefined); - CMyComBSTR tempName(Password); - *password = tempName.Detach(); - return S_OK; + return StringToBstr(Password, password); } /* @@ -211,9 +209,7 @@ HRESULT CUpdateCallbackGUI::Open_CryptoGetTextPassword(BSTR *password) Password = dialog.Password; PasswordIsDefined = true; } - CMyComBSTR tempName(Password); - *password = tempName.Detach(); - return S_OK; + return StringToBstr(Password, password); } HRESULT CUpdateCallbackGUI::Open_GetPasswordIfAny(UString &password) |