msctf: ITfContext::RequestEditSession: dwLockFlags logic corrected.
This commit is contained in:
parent
cb26244adb
commit
e11935a14b
|
@ -228,12 +228,12 @@ static HRESULT WINAPI Context_RequestEditSession (ITfContext *iface,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(dwFlags & TF_ES_ASYNC))
|
if (!(dwFlags & TF_ES_ASYNC))
|
||||||
dwLockFlags &= TS_LF_SYNC;
|
dwLockFlags |= TS_LF_SYNC;
|
||||||
|
|
||||||
if (dwFlags & TF_ES_READ)
|
if (dwFlags & TF_ES_READ)
|
||||||
dwLockFlags &= TS_LF_READ;
|
dwLockFlags |= TS_LF_READ;
|
||||||
else if ((dwFlags & TF_ES_READWRITE) == TF_ES_READWRITE)
|
else if ((dwFlags & TF_ES_READWRITE) == TF_ES_READWRITE)
|
||||||
dwLockFlags &= TS_LF_READWRITE;
|
dwLockFlags |= TS_LF_READWRITE;
|
||||||
|
|
||||||
/* TODO: cache this */
|
/* TODO: cache this */
|
||||||
ITextStoreACP_GetStatus(This->pITextStoreACP, &status);
|
ITextStoreACP_GetStatus(This->pITextStoreACP, &status);
|
||||||
|
|
Loading…
Reference in New Issue