diff --git a/src/kits/storage/Entry.cpp b/src/kits/storage/Entry.cpp index 3cc830c98e..c28d1f8e5f 100644 --- a/src/kits/storage/Entry.cpp +++ b/src/kits/storage/Entry.cpp @@ -524,15 +524,8 @@ BEntry::GetPath(BPath *path) const if (path == NULL) return B_BAD_VALUE; - - entry_ref ref; - status_t status; - - status = GetRef(&ref); - if (status != B_OK) - return status; - - return path->SetTo(&ref); + + return path->SetTo(this); } /*! \brief Gets the parent of the BEntry as another BEntry.