Monotone-Parent: c40c5c6ccb865a2765307f1e9a53f079e5486bb4

Monotone-Revision: e5c4217c6e36b401e5a327f56f52df4391fc0526

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-29T20:58:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-07-29 20:58:04 +00:00
parent 1a69a31aad
commit c40d8788f2
2 changed files with 24 additions and 4 deletions

View File

@@ -362,16 +362,36 @@ static Class NSExceptionK, MAPIStoreFolderK;
- (int) getPrChangeKey: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
return [self getReplicaKey: data fromGlobCnt: [self objectVersion]
int rc;
uint64_t obVersion;
obVersion = [self objectVersion];
if (obVersion = 0xffffffffffffffffLL)
rc = MAPISTORE_ERR_NOT_FOUND;
else
rc = [self getReplicaKey: data fromGlobCnt: obVersion
inMemCtx: memCtx];
return rc;
}
- (int) getPrChangeNum: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
*data = MAPILongLongValue (memCtx, ([self objectVersion] << 16) | 0x0001);
int rc;
uint64_t obVersion;
return MAPISTORE_SUCCESS;
obVersion = [self objectVersion];
if (obVersion = 0xffffffffffffffffLL)
rc = MAPISTORE_ERR_NOT_FOUND;
else
{
*data = MAPILongLongValue (memCtx, ((obVersion << 16)
| 0x0001));
rc = MAPISTORE_SUCCESS;
}
return rc;
}
- (int) getPrCreationTime: (void **) data