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:
@@ -349,7 +349,7 @@ MediaFilesManager::HandleAddSystemBeepEvent(BMessage* message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
entry_ref* ref = NULL;
|
entry_ref* ref = NULL;
|
||||||
if (GetRefFor(type, name, &ref) == B_ENTRY_NOT_FOUND) {
|
if (GetRefFor(type, name, &ref) != B_OK) {
|
||||||
entry_ref newRef;
|
entry_ref newRef;
|
||||||
SetRefFor(type, name, newRef);
|
SetRefFor(type, name, newRef);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user