rem: if (file.InitCheck() == B_OK)
add: if (file.InitCheck() == B_OK) {
context: WorkspacesPreferences::~WorkspacesPreferences(){	BPath path;	if (find_directory(B_USER_SETTINGS_DIRECTORY,&path) < B_OK)		return;	path.Append(kWorkspacesSettingFile);	BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);	if (file.InitCheck() == B_OK)		file.Write(&fWindowFrame, sizeof(BRect));}