Gerald Pfeifer : comctl32: Simplify condition based on WPARAM always being >= 0.
Module: wine Branch: master Commit: 42677e25f754b39ec626e50eb2a1fbe2240ccdd8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=42677e25f754b39ec626e50eb2... Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Mon Dec 3 21:16:46 2007 +0100 comctl32: Simplify condition based on WPARAM always being >= 0. --- dlls/comctl32/rebar.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index 7cf11bf..f42c937 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -2797,7 +2797,7 @@ REBAR_GetFont (const REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam) static LRESULT REBAR_PushChevron(const REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam) { - if (wParam >= 0 && (UINT)wParam < infoPtr->uNumBands) + if ((UINT)wParam < infoPtr->uNumBands) { NMREBARCHEVRON nmrbc; REBAR_BAND *lpBand = &infoPtr->bands[wParam];
participants (1)
-
Alexandre Julliard