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