diff options
Diffstat (limited to 'CPP/7zip/UI/Far/ExtractEngine.cpp')
-rwxr-xr-x | CPP/7zip/UI/Far/ExtractEngine.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CPP/7zip/UI/Far/ExtractEngine.cpp b/CPP/7zip/UI/Far/ExtractEngine.cpp index 02d14f83..b18eed59 100755 --- a/CPP/7zip/UI/Far/ExtractEngine.cpp +++ b/CPP/7zip/UI/Far/ExtractEngine.cpp @@ -57,20 +57,21 @@ STDMETHODIMP CExtractCallBackImp::AskOverwrite( Int32 *answer) { NOverwriteDialog::CFileInfo oldFileInfo, newFileInfo; - oldFileInfo.Time = *existTime; + oldFileInfo.TimeIsDefined = (existTime != 0); + if (oldFileInfo.TimeIsDefined) + oldFileInfo.Time = *existTime; oldFileInfo.SizeIsDefined = (existSize != NULL); if (oldFileInfo.SizeIsDefined) oldFileInfo.Size = *existSize; - oldFileInfo.Name = GetSystemString(existName, m_CodePage); + oldFileInfo.Name = existName; newFileInfo.TimeIsDefined = (newTime != 0); if (newFileInfo.TimeIsDefined) newFileInfo.Time = *newTime; - newFileInfo.SizeIsDefined = (newSize != NULL); if (newFileInfo.SizeIsDefined) newFileInfo.Size = *newSize; - newFileInfo.Name = GetSystemString(newName, m_CodePage); + newFileInfo.Name = newName; NOverwriteDialog::NResult::EEnum result = NOverwriteDialog::Execute(oldFileInfo, newFileInfo); |