Commit c292c40d authored by Vijay Kiran Kamuju's avatar Vijay Kiran Kamuju Committed by Alexandre Julliard

comctl32: statusbar: Fix GetRect return value bug.

parent d0f1c23c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment