mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-30 02:22:47 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user