comctl32: statusbar: Fix GetRect return value bug.

This commit is contained in:
Vijay Kiran Kamuju 2006-12-25 14:55:52 +05:30 committed by Alexandre Julliard
parent d0f1c23c93
commit c292c40d05
1 changed files with 2 additions and 0 deletions

View File

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