ScreenSaverSettings: check find_directory return value
This commit is contained in:
parent
6d55c2c490
commit
4116ae4ffd
@ -27,10 +27,10 @@
|
||||
ScreenSaverSettings::ScreenSaverSettings()
|
||||
{
|
||||
BPath path;
|
||||
find_directory(B_USER_SETTINGS_DIRECTORY, &path);
|
||||
|
||||
fSettingsPath = path;
|
||||
fSettingsPath.Append("ScreenSaver_settings", true);
|
||||
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
||||
fSettingsPath = path;
|
||||
fSettingsPath.Append("ScreenSaver_settings", true);
|
||||
}
|
||||
|
||||
Defaults();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user