mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 23:14:54 -06:00
15.05
This commit is contained in:
committed by
Kornel Lesiński
parent
0713a3ab80
commit
54490d51d5
@@ -55,12 +55,10 @@ static int FindPlugin(const CObjectVector<CPluginInfo> &plugins, const UString &
|
||||
}
|
||||
*/
|
||||
|
||||
static const FChar kExtensionDelimiter = FTEXT('.');
|
||||
|
||||
static void SplitNameToPureNameAndExtension(const FString &fullName,
|
||||
FString &pureName, FString &extensionDelimiter, FString &extension)
|
||||
{
|
||||
int index = fullName.ReverseFind(kExtensionDelimiter);
|
||||
int index = fullName.ReverseFind_Dot();
|
||||
if (index < 0)
|
||||
{
|
||||
pureName = fullName;
|
||||
@@ -70,7 +68,7 @@ static void SplitNameToPureNameAndExtension(const FString &fullName,
|
||||
else
|
||||
{
|
||||
pureName.SetFrom(fullName, index);
|
||||
extensionDelimiter = kExtensionDelimiter;
|
||||
extensionDelimiter = FTEXT('.');
|
||||
extension = fullName.Ptr(index + 1);
|
||||
}
|
||||
}
|
||||
@@ -89,7 +87,7 @@ HRESULT OpenFileFolderPlugin(
|
||||
|
||||
FString extension, name, pureName, dot;
|
||||
|
||||
int slashPos = path.ReverseFind(FCHAR_PATH_SEPARATOR);
|
||||
int slashPos = path.ReverseFind_PathSepar();
|
||||
FString dirPrefix;
|
||||
FString fileName;
|
||||
if (slashPos >= 0)
|
||||
|
||||
Reference in New Issue
Block a user