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
This commit is contained in:
Rene Gollent 2009-12-29 16:57:44 +00:00
parent f0f0db8b2a
commit ca833f9f1b

View File

@ -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);
}