Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp')
-rwxr-xr-xCPP/7zip/UI/GUI/UpdateCallbackGUI.cpp8
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)