Monotone-Parent: e1d77c8035a84435f5745fe6e47f1fb5c978d808

Monotone-Revision: 872b6482fb1a591d12d1baf86c6724907aa743dc

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-03-21T00:41:22
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-03-21 00:41:22 +00:00
parent b62149d65f
commit 7979b0fee2
9 changed files with 19 additions and 9 deletions

View File

@ -1,5 +1,15 @@
2011-03-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreCalendarMessageTable.m,
OpenChange/MAPIStoreTasksMessageTable.m,
OpenChange/MAPIStoreContactsMessageTable.m,
OpenChange/MAPIStoreMailMessageTable.m,
OpenChange/MAPIStoreTasksMessage.m, OpenChange/MAPIStoreMessage.m,
OpenChange/MAPIStoreMailMessage.m,
OpenChange/MAPIStoreContactsMessage.m: cast property tags to
uint32_t in switch statements to avoid fatal warnings about
uncovered cases.
* UI/Scheduler/UIxComponentEditor.m
(-takeValuesFromRequest:inContext:): added some sanity checks to
avoid crashes when alarm data is not properly entered.

View File

@ -44,7 +44,7 @@
id value;
value = NSObjectFromMAPISPropValue (&res->lpProp);
switch (res->ulPropTag)
switch ((uint32_t) res->ulPropTag)
{
case PR_MESSAGE_CLASS_UNICODE:
if ([value isEqualToString: @"IPM.Appointment"])

View File

@ -82,7 +82,7 @@
enum MAPISTATUS rc;
rc = MAPISTORE_SUCCESS;
switch (proptag)
switch ((uint32_t) proptag)
{
case PR_ICON_INDEX: // TODO
/* see http://msdn.microsoft.com/en-us/library/cc815472.aspx */

View File

@ -73,7 +73,7 @@
id value;
value = NSObjectFromMAPISPropValue (&res->lpProp);
switch (res->ulPropTag)
switch ((uint32_t) res->ulPropTag)
{
case PR_MESSAGE_CLASS_UNICODE:
if ([value isEqualToString: @"IPM.Contact"])

View File

@ -97,7 +97,7 @@ static Class NSExceptionK;
enum MAPISTATUS rc;
rc = MAPISTORE_SUCCESS;
switch (propTag)
switch ((uint32_t) propTag)
{
case PR_ICON_INDEX:
/* see http://msdn.microsoft.com/en-us/library/cc815472.aspx */

View File

@ -93,7 +93,7 @@ static Class NSDataK, NSStringK;
id value;
value = NSObjectFromMAPISPropValue (&res->lpProp);
switch (res->ulPropTag)
switch ((uint32_t) res->ulPropTag)
{
case PR_MESSAGE_CLASS_UNICODE:
if ([value isEqualToString: @"IPM.Note"])

View File

@ -135,7 +135,7 @@
NSUInteger length;
rc = MAPI_E_SUCCESS;
switch (propTag)
switch ((uint32_t) propTag)
{
case PR_INST_ID: // TODO: DOUBT
/* we return a unique id based on the key */

View File

@ -60,7 +60,7 @@
double doubleValue;
rc = MAPI_E_SUCCESS;
switch (propTag)
switch ((uint32_t) propTag)
{
case PR_ICON_INDEX: // TODO
/* see http://msdn.microsoft.com/en-us/library/cc815472.aspx */

View File

@ -62,7 +62,7 @@
id value;
value = NSObjectFromMAPISPropValue (&res->lpProp);
switch (res->ulPropTag)
switch ((uint32_t) res->ulPropTag)
{
case PR_MESSAGE_CLASS_UNICODE:
if ([value isKindOfClass: [NSString class]]
@ -106,7 +106,7 @@
{
MAPIRestrictionState rc;
switch (res->ulPropTag)
switch ((uint32_t) res->ulPropTag)
{
case PidLidTaskDateCompleted:
/* since we don't store the completion date in the quick table, we only