From c0cfc9a87ab96fd507018469b0586732f48d4b6a Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Tue, 14 Aug 2012 23:15:13 +0200 Subject: [PATCH] riched20: Avoid a TRUE:FALSE conditional expression. --- dlls/riched20/txthost.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/riched20/txthost.c b/dlls/riched20/txthost.c index bc96588abdf..4b72d8b4258 100644 --- a/dlls/riched20/txthost.c +++ b/dlls/riched20/txthost.c @@ -141,8 +141,7 @@ DECLSPEC_HIDDEN BOOL WINAPI ITextHostImpl_TxSetScrollRange(ITextHost *iface, INT DECLSPEC_HIDDEN BOOL WINAPI ITextHostImpl_TxSetScrollPos(ITextHost *iface, INT fnBar, INT nPos, BOOL fRedraw) { ITextHostImpl *This = impl_from_ITextHost(iface); - int pos = SetScrollPos(This->hWnd, fnBar, nPos, fRedraw); - return (pos ? TRUE : FALSE); + return SetScrollPos(This->hWnd, fnBar, nPos, fRedraw) != 0; } DECLSPEC_HIDDEN void WINAPI ITextHostImpl_TxInvalidateRect(ITextHost *iface, LPCRECT prc, BOOL fMode)