From 7aef9a9db14d99e506ed5d0739f67d8dca79cddc Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 30 Jul 2018 21:18:13 +0200 Subject: [PATCH] msctf: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/msctf/documentmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msctf/documentmgr.c b/dlls/msctf/documentmgr.c index cf4c601cff5..9fa6b0f0ddf 100644 --- a/dlls/msctf/documentmgr.c +++ b/dlls/msctf/documentmgr.c @@ -188,7 +188,7 @@ static HRESULT WINAPI DocumentMgr_Pop(ITfDocumentMgr *iface, DWORD dwFlags) { int i; - for (i = 0; i < sizeof(This->contextStack)/sizeof(This->contextStack[0]); i++) + for (i = 0; i < ARRAY_SIZE(This->contextStack); i++) if (This->contextStack[i]) { ITfThreadMgrEventSink_OnPopContext(This->ThreadMgrSink, This->contextStack[i]);