diff options
Diffstat (limited to 'CPP/7zip/Archive/7z/7zDecode.cpp')
-rwxr-xr-x | CPP/7zip/Archive/7z/7zDecode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CPP/7zip/Archive/7z/7zDecode.cpp b/CPP/7zip/Archive/7z/7zDecode.cpp index 13fe50c8..e630538d 100755 --- a/CPP/7zip/Archive/7z/7zDecode.cpp +++ b/CPP/7zip/Archive/7z/7zDecode.cpp @@ -264,7 +264,7 @@ HRESULT CDecoder::Decode( RINOK(getTextPassword->CryptoGetTextPassword(&passwordBSTR)); CByteBuffer buffer; passwordIsDefined = true; - UString password = passwordBSTR; + const UString password(passwordBSTR); const UInt32 sizeInBytes = password.Length() * 2; buffer.SetCapacity(sizeInBytes); for (int i = 0; i < password.Length(); i++) |