Aric Stewart : msctf: Correct order of dwFlag checking to properly be able to set a ReadWrite lock .
Alexandre Julliard
julliard at winehq.org
Fri May 22 08:25:32 CDT 2009
Module: wine
Branch: master
Commit: a9c998ae90de302592a40a962ed631c9a565be65
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a9c998ae90de302592a40a962ed631c9a565be65
Author: Aric Stewart <aric at codeweavers.com>
Date: Thu May 21 13:44:51 2009 -0500
msctf: Correct order of dwFlag checking to properly be able to set a ReadWrite lock.
---
dlls/msctf/context.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msctf/context.c b/dlls/msctf/context.c
index 9733518..1438d09 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);
More information about the wine-cvs
mailing list