Commit 07f9f712 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

user32: Use straight assignments instead of CopyRect().

parent da02140b
......@@ -777,7 +777,7 @@ static void CBPaintBorder(
}
else
{
CopyRect(&clientRect, &lphc->textRect);
clientRect = lphc->textRect;
InflateRect(&clientRect, EDIT_CONTROL_PADDING(), EDIT_CONTROL_PADDING());
InflateRect(&clientRect, COMBO_XBORDERSIZE(), COMBO_YBORDERSIZE());
......
......@@ -4665,7 +4665,7 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
case EM_GETRECT:
if (lParam)
CopyRect((LPRECT)lParam, &es->format_rect);
*((LPRECT)lParam) = es->format_rect;
break;
case EM_SETRECT:
......
......@@ -1683,7 +1683,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
if (!pvParam) return FALSE;
spi_idx = SPI_SETWORKAREA_IDX;
CopyRect( &work_area, pvParam );
work_area = *(RECT*)pvParam;
spi_loaded[spi_idx] = TRUE;
ret = TRUE;
break;
......@@ -1702,7 +1702,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
EnumDisplayMonitors( 0, NULL, enum_monitors, (LPARAM)&work_area );
spi_loaded[spi_idx] = TRUE;
}
CopyRect( pvParam, &work_area );
*(RECT*)pvParam = work_area;
ret = TRUE;
TRACE("work area %s\n", wine_dbgstr_rect( &work_area ));
break;
......
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