msctf: ITfContext::RequestEditSession: dwLockFlags logic corrected.

This commit is contained in:
Joris Huizer 2009-05-19 19:50:03 +02:00 committed by Alexandre Julliard
parent cb26244adb
commit e11935a14b
1 changed files with 3 additions and 3 deletions

View File

@ -228,12 +228,12 @@ static HRESULT WINAPI Context_RequestEditSession (ITfContext *iface,
}
if (!(dwFlags & TF_ES_ASYNC))
dwLockFlags &= TS_LF_SYNC;
dwLockFlags |= TS_LF_SYNC;
if (dwFlags & TF_ES_READ)
dwLockFlags &= TS_LF_READ;
dwLockFlags |= TS_LF_READ;
else if ((dwFlags & TF_ES_READWRITE) == TF_ES_READWRITE)
dwLockFlags &= TS_LF_READWRITE;
dwLockFlags |= TS_LF_READWRITE;
/* TODO: cache this */
ITextStoreACP_GetStatus(This->pITextStoreACP, &status);