Just return error if current directory not be setted.

This commit is contained in:
shenweip
2019-12-25 11:16:56 +08:00
parent c3a489fa90
commit fb696f8a71
2 changed files with 14 additions and 21 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ public:
inline int MapFilePath(const std::string &_inpath, std::string &outpath, IFileSystem **system) {
MountPoint *mountPoint;
int error = MapFilePath(_inpath, outpath, &mountPoint);
if (error >= 0) {
if (error == 0) {
*system = mountPoint->system;
return error;
}