comctl32/rebar: Don't use local variable with the same name as function parameter (Coverity).

This commit is contained in:
Nikolay Sivov 2011-02-25 11:50:01 +03:00 committed by Alexandre Julliard
parent f8ba490e58
commit 190f6ab158
1 changed files with 2 additions and 1 deletions

View File

@ -1524,9 +1524,10 @@ REBAR_SizeToHeight(REBAR_INFO *infoPtr, int height)
for (i = prev_visible(infoPtr, infoPtr->uNumBands); i > 0; i = prev_visible(infoPtr, i))
{
REBAR_BAND *lpBand = REBAR_GetBand(infoPtr, i);
int height = lpBand->rcBand.bottom - lpBand->rcBand.top;
int cyBreakExtra; /* additional cy for the rebar after a RBBS_BREAK on this band */
height = lpBand->rcBand.bottom - lpBand->rcBand.top;
if (infoPtr->dwStyle & RBS_VARHEIGHT)
cyBreakExtra = lpBand->cyRowSoFar; /* 'height' => 'lpBand->cyRowSoFar' + 'height'*/
else