Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added check on the results of both ValidBaseObject and ValidObject
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 17 Jan 2016 11:20:03 +0000 (11:20 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 17 Jan 2016 11:20:03 +0000 (11:20 +0000)
source/objects/calendarobject/CalendarObject.cpp

index e63d9d8..6ed8acd 100644 (file)
@@ -144,6 +144,17 @@ CalendarObjectLoadResult CalendarObject::LoadString(std::string *LoadStringData)
        CalendarObjectValidResult BaseDataResult = ValidBaseObject();
        CalendarObjectValidResult EventDataResult = ValidObject();
        
+       if (BaseDataResult != CALENDAROBJECTVALID_OK || 
+               EventDataResult != CALENDAROBJECTVALID_OK){
+                       
+               StringProcResult = CALENDAROBJECTLOAD_INVALIDFORMAT;
+                       
+       } else {
+               
+               StringProcResult = CALENDAROBJECTLOAD_OK;
+               
+       }
+       
        return StringProcResult;
        
 }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy