return CALENDAROBJECTSAVE_CANNOTOPEN;
}
- FileStream.close();
-
// Process the data into a string.
CalendarObjectSaveResult SaveResult = CALENDAROBJECTSAVE_UNITTESTFAIL;
SaveResult = SaveString(&SaveStringData);
+ FileStream.write(SaveStringData.c_str(), SaveStringData.size());
+
+ FileStream.close();
+
return SaveResult;
}
*SaveStringData += "PRODID:-//Xestia//Calendar Version ";
*SaveStringData += XSDCAL_VERSION;
- *SaveStringData += "\n";
+ *SaveStringData += "//KW\n";
#endif
SaveObjectData(SaveStringData);
*SaveStringData += "END:VCALENDAR";
+
+ return CALENDAROBJECTSAVE_OK;
}
\ No newline at end of file