Updated to match new entry_ref_is_root_dir() calling convention.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1323 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder 2002-10-01 07:24:38 +00:00
parent 28f43bbd48
commit cea5557794

View File

@ -588,7 +588,7 @@ status_t BEntry::GetParent(BEntry *entry) const
if (status == B_OK) {
// Verify we aren't an entry representing "/"
status = BPrivate::Storage::entry_ref_is_root_dir(ref) ? B_ENTRY_NOT_FOUND
status = BPrivate::Storage::entry_ref_is_root_dir(&ref) ? B_ENTRY_NOT_FOUND
: B_OK ;
if (status == B_OK) {
@ -635,7 +635,7 @@ BEntry::GetParent(BDirectory *dir) const
if (status == B_OK) {
// Verify we aren't an entry representing "/"
status = BPrivate::Storage::entry_ref_is_root_dir(ref) ? B_ENTRY_NOT_FOUND : B_OK ;
status = BPrivate::Storage::entry_ref_is_root_dir(&ref) ? B_ENTRY_NOT_FOUND : B_OK ;
if (status == B_OK) {
// Now point the entry_ref to the parent directory (instead of ourselves)