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:
François Revol 2009-02-06 16:48:03 +00:00
parent 3813268c9c
commit b36570e51f

View File

@ -837,7 +837,8 @@ DirectoryIterator::SetTo(const char* path, const char* subPath, bool recursive)
pathBuffer.UnlockBuffer();
pathBuffer.Append("kernel");
AddPath(pathBuffer.Path(), subPath);
}
} else
pathBuffer.UnlockBuffer();
}
} else
AddPath(path, subPath);
@ -1359,7 +1360,8 @@ legacy_driver_probe(const char* subPath)
start_watching(path.Path(), "dev");
start_watching(path.Path(), "bin");
}
} else
path.UnlockBuffer();
}
sWatching = true;