ScreenSaverSettings: check find_directory return value

This commit is contained in:
John Scipione 2014-02-25 14:09:47 -05:00
parent 6d55c2c490
commit 4116ae4ffd
1 changed files with 4 additions and 4 deletions

View File

@ -27,10 +27,10 @@
ScreenSaverSettings::ScreenSaverSettings()
{
BPath path;
find_directory(B_USER_SETTINGS_DIRECTORY, &path);
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
fSettingsPath = path;
fSettingsPath.Append("ScreenSaver_settings", true);
}
Defaults();
}