CalendarObjectValidResult BaseDataResult = ValidBaseObject();
CalendarObjectValidResult EventDataResult = ValidObject();
+ if (BaseDataResult != CALENDAROBJECTVALID_OK ||
+ EventDataResult != CALENDAROBJECTVALID_OK){
+
+ StringProcResult = CALENDAROBJECTLOAD_INVALIDFORMAT;
+
+ } else {
+
+ StringProcResult = CALENDAROBJECTLOAD_OK;
+
+ }
+
return StringProcResult;
}
}
}
-
+
+ if (ObjectName[SeekCount] == "END" &&
+ ObjectData[SeekCount] == "VCALENDAR" &&
+ ValidBegin == false){
+
+ return CALENDAROBJECTVALID_INVALIDFORMAT;
+
+ }
+
SeekCount++;
}