comctl32/tests: Remove variable res which is not really used from test_monthcal_size.

Gerald Pfeifer gerald at pfeifer.com
Wed May 5 17:11:05 CDT 2010


Also in other places don't we check the result of SendMessage, and that's 
not really what we want to test here, either, from what I can tell.

Gerald
---
 dlls/comctl32/tests/monthcal.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c
index d1fa8de..cd1972e 100644
--- a/dlls/comctl32/tests/monthcal.c
+++ b/dlls/comctl32/tests/monthcal.c
@@ -1484,7 +1484,6 @@ static void test_monthcal_maxselday(void)
 
 static void test_monthcal_size(void)
 {
-    int res;
     RECT r1, r2;
     HFONT hFont1, hFont2;
     LOGFONTA logfont;
@@ -1502,11 +1501,11 @@ static void test_monthcal_size(void)
 
     /* initialize to a font we can compare against */
     SendMessage(hwnd, WM_SETFONT, (WPARAM)hFont1, 0);
-    res = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r1);
+    SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r1);
 
     /* check that setting a larger font results in an larger rect */
     SendMessage(hwnd, WM_SETFONT, (WPARAM)hFont2, 0);
-    res = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r2);
+    SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r2);
 
     OffsetRect(&r1, -r1.left, -r1.top);
     OffsetRect(&r2, -r2.left, -r2.top);
-- 
1.6.6.2



More information about the wine-patches mailing list