Monotone-Parent: c494bd8edc3f42328eeae244084d2d97828732b9

Monotone-Revision: 05b2de9f911d3fd0fc4d6ffdd99cb5e065864668

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-29T14:18:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-11-29 14:18:25 +00:00
parent 42c47c2e03
commit 3c8bc5c157
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2011-11-29 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreTypes.m (NSObjectFromSPropValue): set the
resulting string to @"" when the unicode or string pointers are
NULL.
2011-11-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreContext.m

View File

@@ -188,10 +188,14 @@ NSObjectFromSPropValue (const struct SPropValue *value)
result = [NSNumber numberWithDouble: value->value.dbl];
break;
case PT_UNICODE:
result = [NSString stringWithUTF8String: value->value.lpszW];
result = (value->value.lpszW
? [NSString stringWithUTF8String: value->value.lpszW]
: @"");
break;
case PT_STRING8:
result = [NSString stringWithUTF8String: value->value.lpszA];
result = (value->value.lpszA
? [NSString stringWithUTF8String: value->value.lpszA]
: @"");
break;
case PT_SYSTIME:
result = [NSCalendarDate dateFromFileTime: &(value->value.ft)];