mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-21 09:30:55 +00:00
fix FSMakeFSSpec
This commit is contained in:
parent
74370db603
commit
e8d756c1b6
@ -63,7 +63,7 @@ namespace OS {
|
||||
if (!insert) return -1;
|
||||
|
||||
_pathQueue.emplace_back(FSSpecManager::Entry(path, hash));
|
||||
return _pathQueue.size();
|
||||
return _pathQueue.size() + RootPathID - 1;
|
||||
}
|
||||
|
||||
int32_t FSSpecManager::IDForPath(std::string &&path, bool insert)
|
||||
@ -96,7 +96,7 @@ namespace OS {
|
||||
if (!insert) return -1;
|
||||
|
||||
_pathQueue.emplace_back(FSSpecManager::Entry(std::move(path), hash));
|
||||
return _pathQueue.size();
|
||||
return _pathQueue.size() + RootPathID - 1;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user