From a9c998ae90de302592a40a962ed631c9a565be65 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Thu, 21 May 2009 13:44:51 -0500 Subject: [PATCH] msctf: Correct order of dwFlag checking to properly be able to set a ReadWrite lock. --- dlls/msctf/context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msctf/context.c b/dlls/msctf/context.c index 97335186229..1438d0910c9 100644 --- a/dlls/msctf/context.c +++ b/dlls/msctf/context.c @@ -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);