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:
parent
28f43bbd48
commit
cea5557794
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user