comctl32: Simplify condition based on WPARAM always being >= 0.

oldstable
Gerald Pfeifer 2007-12-03 21:16:46 +01:00 committed by Alexandre Julliard
parent 81f32c7a38
commit 42677e25f7
1 changed files with 1 additions and 1 deletions

View File

@ -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];