Fix loading add-ons in safemode

Signed-off-by: Philippe Saint-Pierre <stpere@gmail.com>
This commit is contained in:
Murai Takashi 2013-10-06 20:55:38 +09:00 committed by Philippe Saint-Pierre
parent ced0e0be04
commit b29295c7da
2 changed files with 2 additions and 2 deletions

View File

@ -339,7 +339,7 @@ IndexServer::_StartWatchingAddOns()
};
// when safemode, only B_SYSTEM_ADDONS_DIRECTORY is used
for (uint32 i = safeMode ? 4 : 0;
for (uint32 i = safeMode ? 3 : 0;
i < sizeof(directories) / sizeof(directory_which); i++) {
BDirectory directory;
node_ref nodeRef;

View File

@ -301,7 +301,7 @@ MediaAddonServer::ReadyToRun()
};
// when safemode, only B_SYSTEM_ADDONS_DIRECTORY is used
for (uint32 i = safeMode ? 4 : 0;
for (uint32 i = safeMode ? 3 : 0;
i < sizeof(directories) / sizeof(directory_which); i++) {
BDirectory directory;
node_ref nodeRef;