diff --git a/src/servers/media/MediaFilesManager.cpp b/src/servers/media/MediaFilesManager.cpp index d71c6561ab..429b64320f 100644 --- a/src/servers/media/MediaFilesManager.cpp +++ b/src/servers/media/MediaFilesManager.cpp @@ -349,7 +349,7 @@ MediaFilesManager::HandleAddSystemBeepEvent(BMessage* message) } entry_ref* ref = NULL; - if (GetRefFor(type, name, &ref) == B_ENTRY_NOT_FOUND) { + if (GetRefFor(type, name, &ref) != B_OK) { entry_ref newRef; SetRefFor(type, name, newRef); }