Commit 2ea72e87 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

comctl32: Avoid using memset on RECTs.

parent f333bf47
...@@ -127,8 +127,8 @@ STATUSBAR_ComputeHeight(STATUS_INFO *infoPtr) ...@@ -127,8 +127,8 @@ STATUSBAR_ComputeHeight(STATUS_INFO *infoPtr)
* textHeight pixels large */ * textHeight pixels large */
HDC hdc = GetDC(infoPtr->Self); HDC hdc = GetDC(infoPtr->Self);
RECT r; RECT r;
memset (&r, 0, sizeof (r));
r.bottom = max(infoPtr->minHeight, tm.tmHeight); SetRect(&r, 0, 0, 0, max(infoPtr->minHeight, tm.tmHeight));
if (SUCCEEDED(GetThemeBackgroundExtent(theme, hdc, SP_PANE, 0, &r, &r))) if (SUCCEEDED(GetThemeBackgroundExtent(theme, hdc, SP_PANE, 0, &r, &r)))
{ {
height = r.bottom - r.top; height = r.bottom - r.top;
......
...@@ -371,14 +371,8 @@ static BOOL TAB_InternalGetItemRect( ...@@ -371,14 +371,8 @@ static BOOL TAB_InternalGetItemRect(
(itemIndex < infoPtr->leftmostVisible))) (itemIndex < infoPtr->leftmostVisible)))
{ {
TRACE("Not Visible\n"); TRACE("Not Visible\n");
/* need to initialize these to empty rects */ SetRect(itemRect, 0, 0, 0, infoPtr->tabHeight);
if (itemRect) SetRectEmpty(selectedRect);
{
memset(itemRect,0,sizeof(RECT));
itemRect->bottom = infoPtr->tabHeight;
}
if (selectedRect)
memset(selectedRect,0,sizeof(RECT));
return FALSE; return FALSE;
} }
......
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