diff --git a/src/apps/haikudepot/ui/App.cpp b/src/apps/haikudepot/ui/App.cpp index 6e22734d8c..93758ca998 100644 --- a/src/apps/haikudepot/ui/App.cpp +++ b/src/apps/haikudepot/ui/App.cpp @@ -151,7 +151,7 @@ void App::_Open(const BEntry& entry) { BPath path; - if (!entry.Exists() || !entry.GetPath(&path) == B_OK) { + if (!entry.Exists() || entry.GetPath(&path) != B_OK) { fprintf(stderr, "Package file not found: %s\n", path.Path()); return; }