mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 10:07:02 -06:00
16.01
This commit is contained in:
committed by
Kornel Lesiński
parent
66ac98bb02
commit
bec3b479dc
@@ -1067,10 +1067,7 @@ STDMETHODIMP CAgentFolder::BindToParentFolder(IFolderFolder **resultFolder)
|
||||
if (parentIndex < 0)
|
||||
proxyDirIndex = k_Proxy2_RootDirIndex;
|
||||
else
|
||||
{
|
||||
const CProxyFile2 &file = _proxy2->Files[parentIndex];
|
||||
proxyDirIndex = file.DirIndex;
|
||||
}
|
||||
proxyDirIndex = _proxy2->Files[parentIndex].DirIndex;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -34,10 +34,10 @@ int CProxyArc::FindSubDir(unsigned dirIndex, const wchar_t *name, unsigned &inse
|
||||
return -1;
|
||||
}
|
||||
unsigned mid = (left + right) / 2;
|
||||
unsigned dirIndex = subDirs[mid];
|
||||
int compare = CompareFileNames(name, Dirs[dirIndex].Name);
|
||||
unsigned dirIndex2 = subDirs[mid];
|
||||
int compare = CompareFileNames(name, Dirs[dirIndex2].Name);
|
||||
if (compare == 0)
|
||||
return dirIndex;
|
||||
return dirIndex2;
|
||||
if (compare < 0)
|
||||
right = mid;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user