forked from Mirrors/wine-wine
comctl32: Simplify condition based on WPARAM always being >= 0.
parent
81f32c7a38
commit
42677e25f7
|
@ -2797,7 +2797,7 @@ REBAR_GetFont (const REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
|
||||||
static LRESULT
|
static LRESULT
|
||||||
REBAR_PushChevron(const REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
|
REBAR_PushChevron(const REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
if (wParam >= 0 && (UINT)wParam < infoPtr->uNumBands)
|
if ((UINT)wParam < infoPtr->uNumBands)
|
||||||
{
|
{
|
||||||
NMREBARCHEVRON nmrbc;
|
NMREBARCHEVRON nmrbc;
|
||||||
REBAR_BAND *lpBand = &infoPtr->bands[wParam];
|
REBAR_BAND *lpBand = &infoPtr->bands[wParam];
|
||||||
|
|
Loading…
Reference in New Issue