Gerald Pfeifer : gdi32/tests: Remove variable oldPen which is not really used from test_widenpath.

Alexandre Julliard julliard at winehq.org
Mon May 10 11:59:12 CDT 2010


Module: wine
Branch: master
Commit: 4339944fae9608f585d03a388332bbe9a94a7fad
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4339944fae9608f585d03a388332bbe9a94a7fad

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Fri May  7 21:06:58 2010 +0200

gdi32/tests: Remove variable oldPen which is not really used from test_widenpath.

---

 dlls/gdi32/tests/path.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/gdi32/tests/path.c b/dlls/gdi32/tests/path.c
index 43f3d62..9fe6f43 100644
--- a/dlls/gdi32/tests/path.c
+++ b/dlls/gdi32/tests/path.c
@@ -37,13 +37,12 @@ static void test_widenpath(void)
 {
     HDC hdc = GetDC(0);
     HPEN greenPen, narrowPen;
-    HPEN oldPen;
     POINT pnt[6];
     INT nSize, ret;
 
     /* Create a pen to be used in WidenPath */
     greenPen = CreatePen(PS_SOLID, 10, RGB(0,0,0));
-    oldPen = SelectObject(hdc, greenPen);
+    SelectObject(hdc, greenPen);
 
     /* Prepare a path */
     pnt[0].x = 100;
@@ -85,7 +84,7 @@ static void test_widenpath(void)
 
     /* Test when the pen width is equal to 1. The path should change too */
     narrowPen = CreatePen(PS_SOLID, 1, RGB(0,0,0));
-    oldPen = SelectObject(hdc, narrowPen);
+    SelectObject(hdc, narrowPen);
     BeginPath(hdc);
     Polyline(hdc, pnt, 6);
     EndPath(hdc);




More information about the wine-cvs mailing list