comctl32: Use signed indices, so that the number of parts can be set to zero.

This commit is contained in:
Peter Urbanec 2011-02-26 04:03:30 +11:00 committed by Alexandre Julliard
parent e165464eea
commit 4f77b00372
1 changed files with 2 additions and 2 deletions

View File

@ -661,7 +661,7 @@ static BOOL
STATUSBAR_SetParts (STATUS_INFO *infoPtr, INT count, LPINT parts)
{
STATUSWINDOWPART *tmp;
UINT i, oldNumParts;
INT i, oldNumParts;
TRACE("(%d,%p)\n", count, parts);
@ -693,7 +693,7 @@ STATUSBAR_SetParts (STATUS_INFO *infoPtr, INT count, LPINT parts)
infoPtr->parts[i].x = parts[i];
if (infoPtr->hwndToolTip) {
UINT nTipCount;
INT nTipCount;
TTTOOLINFOW ti;
ZeroMemory (&ti, sizeof(TTTOOLINFOW));