Monotone-Parent: 07c1acd90de17a7e8f0064aff341a4244b2f090b

Monotone-Revision: 19d23c85306b1d118c275902d56124e34314598d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-12T04:23:43
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-07-12 04:23:43 +00:00
parent 7a3300829f
commit e1daba320a
4 changed files with 17 additions and 7 deletions

View File

@@ -803,7 +803,7 @@ static Class NSDataK, NSStringK;
return child;
}
- (int) getRow: (struct mapistore_property_data *) data
- (int) getRow: (struct mapistore_property_data **) dataP
withRowID: (uint32_t) rowId
andQueryType: (enum table_query_type) queryType
inMemCtx: (TALLOC_CTX *) memCtx
@@ -811,16 +811,19 @@ static Class NSDataK, NSStringK;
NSUInteger count;
MAPIStoreObject *child;
enum MAPISTATUS rc;
struct mapistore_property_data *rowData;
child = [self childAtRowID: rowId
forQueryType: queryType];
if (child)
{
rc = MAPI_E_SUCCESS;
rowData = talloc_array(memCtx, struct mapistore_property_data, columnsCount);
for (count = 0; count < columnsCount; count++)
data[count].error = [child getProperty: &data[count].data
withTag: columns[count]
inMemCtx: memCtx];
rowData[count].error = [child getProperty: &rowData[count].data
withTag: columns[count]
inMemCtx: memCtx];
*datap = rowData;
rc = MAPI_E_SUCCESS;
}
else
rc = MAPI_E_INVALID_OBJECT;