comctl32: Avoid using memset on RECTs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f333bf47a8
commit
2ea72e8717
|
@ -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(
|
||||||
(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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue