mirror of
https://github.com/reactos/wine.git
synced 2024-11-27 05:30:30 +00:00
msctf: Correct order of dwFlag checking to properly be able to set a ReadWrite lock.
This commit is contained in:
parent
6562b25b96
commit
a9c998ae90
@ -243,10 +243,10 @@ static HRESULT WINAPI Context_RequestEditSession (ITfContext *iface,
|
||||
if (!(dwFlags & TF_ES_ASYNC))
|
||||
dwLockFlags |= TS_LF_SYNC;
|
||||
|
||||
if (dwFlags & TF_ES_READ)
|
||||
dwLockFlags |= TS_LF_READ;
|
||||
else if ((dwFlags & TF_ES_READWRITE) == TF_ES_READWRITE)
|
||||
if ((dwFlags & TF_ES_READWRITE) == TF_ES_READWRITE)
|
||||
dwLockFlags |= TS_LF_READWRITE;
|
||||
else if (dwFlags & TF_ES_READ)
|
||||
dwLockFlags |= TS_LF_READ;
|
||||
|
||||
/* TODO: cache this */
|
||||
ITextStoreACP_GetStatus(This->pITextStoreACP, &status);
|
||||
|
Loading…
Reference in New Issue
Block a user