From ca833f9f1b05753acfeb17ef664171b1b7f90d3b Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Tue, 29 Dec 2009 16:57:44 +0000 Subject: [PATCH] HandleAddSystemBeepEvent was checking for a specific error code which changed during some recent media_server reworking. As a consequence, adding new system beep events no longer worked. Fixes ticket #5176. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34803 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/media/MediaFilesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }