riched20: Avoid a TRUE:FALSE conditional expression.

This commit is contained in:
Michael Stefaniuc 2012-08-14 23:15:13 +02:00 committed by Alexandre Julliard
parent 5974e9d120
commit c0cfc9a87a
1 changed files with 1 additions and 2 deletions

View File

@ -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)