From 6d21655ed9396c0813f1be942080c5a4f65965b1 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Tue, 21 Jun 2016 14:13:43 +0200 Subject: [PATCH] gdi32/tests: Use SetRect() instead of open coding it. Signed-off-by: Michael Stefaniuc Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/gdi32/tests/metafile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/gdi32/tests/metafile.c b/dlls/gdi32/tests/metafile.c index bcd085cf32a..7e2e66d3715 100644 --- a/dlls/gdi32/tests/metafile.c +++ b/dlls/gdi32/tests/metafile.c @@ -3097,8 +3097,7 @@ static void test_SetWinMetaFileBits(void) if (!wmfDC) return; SetWindowExtEx(wmfDC, 100, 100, NULL); - rect.left = rect.top = 0; - rect.right = rect.bottom = 50; + SetRect(&rect, 0, 0, 50, 50); FillRect(wmfDC, &rect, GetStockObject(BLACK_BRUSH)); wmf = CloseMetaFile(wmfDC); ok(wmf != NULL, "Metafile creation failed\n");