Merge pull request #185 from zentyal/ejhernandez/return-fai-props-on-available
Avoid crashing Outlook after setting a custom view in a calendar folder
This commit is contained in:
commit
180269e39e
|
@ -45,16 +45,28 @@
|
||||||
|
|
||||||
@implementation MAPIStoreDBMessage
|
@implementation MAPIStoreDBMessage
|
||||||
|
|
||||||
+ (int) getAvailableProperties: (struct SPropTagArray **) propertiesP
|
+ (enum mapistore_error) getAvailableProperties: (struct SPropTagArray **) propertiesP
|
||||||
inMemCtx: (TALLOC_CTX *) memCtx
|
inMemCtx: (TALLOC_CTX *) memCtx
|
||||||
{
|
{
|
||||||
struct SPropTagArray *properties;
|
struct SPropTagArray *properties;
|
||||||
NSUInteger count;
|
NSUInteger count;
|
||||||
enum MAPITAGS faiProperties[] = { 0x68350102, 0x683c0102, 0x683e0102,
|
|
||||||
0x683f0102, 0x68410003, 0x68420102,
|
enum MAPITAGS faiProperties[] = {
|
||||||
0x68450102, 0x68460003,
|
0x68330048, /* PR_VIEW_CLSID */
|
||||||
// PR_VD_NAME_W, PR_VD_FLAGS, PR_VD_VERSION, PR_VIEW_CLSID
|
0x68350102, /* PR_VIEW_STATE */
|
||||||
0x7006001F, 0x70030003, 0x70070003, 0x68330048 };
|
0x683c0102,
|
||||||
|
0x683d0040,
|
||||||
|
0x683e0102,
|
||||||
|
0x683f0102, /* PR_VIEW_VIEWTYPE_KEY */
|
||||||
|
0x68410003,
|
||||||
|
0x68420102,
|
||||||
|
0x68450102,
|
||||||
|
0x68460003,
|
||||||
|
0x7006001F, /* PR_VD_NAME_W */
|
||||||
|
0x70030003, /* PR_VD_FLAGS */
|
||||||
|
0x70070003 /* PR_VD_VERSION */
|
||||||
|
};
|
||||||
|
|
||||||
size_t faiSize = sizeof(faiProperties) / sizeof(enum MAPITAGS);
|
size_t faiSize = sizeof(faiProperties) / sizeof(enum MAPITAGS);
|
||||||
|
|
||||||
properties = talloc_zero (memCtx, struct SPropTagArray);
|
properties = talloc_zero (memCtx, struct SPropTagArray);
|
||||||
|
@ -76,6 +88,13 @@
|
||||||
return MAPISTORE_SUCCESS;
|
return MAPISTORE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (enum mapistore_error) getAvailableProperties: (struct SPropTagArray **) propertiesP
|
||||||
|
inMemCtx: (TALLOC_CTX *) memCtx
|
||||||
|
{
|
||||||
|
return [[self class] getAvailableProperties: propertiesP
|
||||||
|
inMemCtx: memCtx];
|
||||||
|
}
|
||||||
|
|
||||||
- (id) initWithSOGoObject: (id) newSOGoObject
|
- (id) initWithSOGoObject: (id) newSOGoObject
|
||||||
inContainer: (MAPIStoreObject *) newContainer
|
inContainer: (MAPIStoreObject *) newContainer
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue