comctl32: statusbar: Fix GetRect return value bug.
This commit is contained in:
parent
d0f1c23c93
commit
c292c40d05
|
@ -433,6 +433,8 @@ static BOOL
|
|||
STATUSBAR_GetRect (STATUS_INFO *infoPtr, INT nPart, LPRECT rect)
|
||||
{
|
||||
TRACE("part %d\n", nPart);
|
||||
if(nPart >= infoPtr->numParts || nPart < 0)
|
||||
return FALSE;
|
||||
if (infoPtr->simple)
|
||||
*rect = infoPtr->part0.bound;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue