mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 22:11:37 -06:00
4.38 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
cb9eea7264
commit
83911c8529
@@ -650,7 +650,7 @@ void CCompressDialog::SetArchiveName(const UString &name)
|
||||
{
|
||||
int dotPos = fileName.ReverseFind('.');
|
||||
int slashPos = MyMax(fileName.ReverseFind('\\'), fileName.ReverseFind('/'));
|
||||
if (dotPos > slashPos)
|
||||
if (dotPos >= 0 && dotPos > slashPos + 1)
|
||||
fileName = fileName.Left(dotPos);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user