mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-14 18:11:41 -06:00
Update to 7-Zip Version 22.00
See: https://sourceforge.net/p/sevenzip/discussion/45797/thread/9c2d9061ce/
This commit is contained in:
@@ -210,7 +210,7 @@ HRESULT CAgentFolder::CommonUpdateOperation(
|
||||
FOR_VECTOR (i, pathParts)
|
||||
{
|
||||
int next = _proxy->FindSubDir(_proxyDirIndex, pathParts[i]);
|
||||
if (next < 0)
|
||||
if (next == -1)
|
||||
break;
|
||||
_proxyDirIndex = next;
|
||||
}
|
||||
@@ -226,7 +226,7 @@ HRESULT CAgentFolder::CommonUpdateOperation(
|
||||
{
|
||||
bool dirOnly = (i + 1 < pathParts.Size() || !isAltStreamFolder);
|
||||
int index = _proxy2->FindItem(_proxyDirIndex, pathParts[i], dirOnly);
|
||||
if (index < 0)
|
||||
if (index == -1)
|
||||
break;
|
||||
|
||||
const CProxyFile2 &file = _proxy2->Files[_proxy2->Dirs[_proxyDirIndex].Items[index]];
|
||||
@@ -235,7 +235,7 @@ HRESULT CAgentFolder::CommonUpdateOperation(
|
||||
_proxyDirIndex = file.DirIndex;
|
||||
else
|
||||
{
|
||||
if (file.AltDirIndex >= 0)
|
||||
if (file.AltDirIndex != -1)
|
||||
_proxyDirIndex = file.AltDirIndex;
|
||||
break;
|
||||
}
|
||||
@@ -351,7 +351,7 @@ STDMETHODIMP CAgentFolder::CreateFolder(const wchar_t *name, IProgress *progress
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_proxy->FindSubDir(_proxyDirIndex, name) >= 0)
|
||||
if (_proxy->FindSubDir(_proxyDirIndex, name) != -1)
|
||||
return ERROR_ALREADY_EXISTS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user