From 6c1198ff2d07d187afda7763883598b8d591ed35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 9 Mar 2008 22:21:21 +0000 Subject: [PATCH] =?UTF-8?q?Disable=20user=20add-ons=20only=20if=20specific?= =?UTF-8?q?ally=20set=20in=20the=20safemode=20settings,=20thanks=20Fran?= =?UTF-8?q?=C3=A7ois!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24341 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/media/AddOnManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/media/AddOnManager.cpp b/src/servers/media/AddOnManager.cpp index bd9fcdf6d1..2ffc55c203 100644 --- a/src/servers/media/AddOnManager.cpp +++ b/src/servers/media/AddOnManager.cpp @@ -235,8 +235,8 @@ AddOnManager::RegisterAddOns() char buffer[16]; size_t size = sizeof(buffer); - bool disableUserAddOns = _kern_get_safemode_option(B_SAFEMODE_SAFE_MODE, - buffer, &size) == B_OK + bool disableUserAddOns = _kern_get_safemode_option( + B_SAFEMODE_DISABLE_USER_ADD_ONS, buffer, &size) == B_OK && (!strcasecmp(buffer, "true") || !strcasecmp(buffer, "yes") || !strcasecmp(buffer, "on")