This commit is contained in:
Igor Pavlov
2014-11-23 00:00:00 +00:00
committed by Kornel Lesiński
parent 83f8ddcc5b
commit f08f4dcc3c
1158 changed files with 76451 additions and 35082 deletions

10
CPP/7zip/Common/FilePathAutoRename.cpp Executable file → Normal file
View File

@@ -2,10 +2,10 @@
#include "StdAfx.h"
#include "Common/Defs.h"
#include "Common/IntToString.h"
#include "../../Common/Defs.h"
#include "../../Common/IntToString.h"
#include "Windows/FileFind.h"
#include "../../Windows/FileFind.h"
#include "FilePathAutoRename.h"
@@ -36,8 +36,8 @@ bool AutoRenamePath(FString &fullProcessedPath)
FString name, extension;
if (dotPos > slashPos && dotPos > 0)
{
name = fullProcessedPath.Left(dotPos);
extension = fullProcessedPath.Mid(dotPos);
name.SetFrom(fullProcessedPath, dotPos);
extension = fullProcessedPath.Ptr(dotPos);
}
else
name = fullProcessedPath;