Commit a9c998ae authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

msctf: Correct order of dwFlag checking to properly be able to set a ReadWrite lock.

parent 6562b25b
...@@ -243,10 +243,10 @@ static HRESULT WINAPI Context_RequestEditSession (ITfContext *iface, ...@@ -243,10 +243,10 @@ 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_READWRITE) == TF_ES_READWRITE)
dwLockFlags |= TS_LF_READ;
else if ((dwFlags & TF_ES_READWRITE) == TF_ES_READWRITE)
dwLockFlags |= TS_LF_READWRITE; dwLockFlags |= TS_LF_READWRITE;
else if (dwFlags & TF_ES_READ)
dwLockFlags |= TS_LF_READ;
/* TODO: cache this */ /* TODO: cache this */
ITextStoreACP_GetStatus(This->pITextStoreACP, &status); ITextStoreACP_GetStatus(This->pITextStoreACP, &status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment