Do proper unlocking of the KPath when find_directory() fails. This should help with CD boot where find_directory() can't create folders on a read-only media.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29139 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -837,7 +837,8 @@ DirectoryIterator::SetTo(const char* path, const char* subPath, bool recursive)
|
|||||||
pathBuffer.UnlockBuffer();
|
pathBuffer.UnlockBuffer();
|
||||||
pathBuffer.Append("kernel");
|
pathBuffer.Append("kernel");
|
||||||
AddPath(pathBuffer.Path(), subPath);
|
AddPath(pathBuffer.Path(), subPath);
|
||||||
}
|
} else
|
||||||
|
pathBuffer.UnlockBuffer();
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
AddPath(path, subPath);
|
AddPath(path, subPath);
|
||||||
@@ -1359,7 +1360,8 @@ legacy_driver_probe(const char* subPath)
|
|||||||
|
|
||||||
start_watching(path.Path(), "dev");
|
start_watching(path.Path(), "dev");
|
||||||
start_watching(path.Path(), "bin");
|
start_watching(path.Path(), "bin");
|
||||||
}
|
} else
|
||||||
|
path.UnlockBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
sWatching = true;
|
sWatching = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user