[PATCH 3/3] Fix a test failure on older comctl32
Paul Vriens
Paul.Vriens.Wine at gmail.com
Tue Dec 22 07:23:46 CST 2009
---
dlls/comctl32/tests/progress.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/tests/progress.c b/dlls/comctl32/tests/progress.c
index 10bbbef..3083e8b 100644
--- a/dlls/comctl32/tests/progress.c
+++ b/dlls/comctl32/tests/progress.c
@@ -163,6 +163,7 @@ static void cleanup(void)
static void test_redraw(void)
{
RECT client_rect;
+ LRESULT ret;
SendMessageA(hProgressWnd, PBM_SETRANGE, 0, MAKELPARAM(0, 100));
SendMessageA(hProgressWnd, PBM_SETPOS, 10, 0);
@@ -184,7 +185,11 @@ static void test_redraw(void)
/* PBM_STEPIT */
ok(SendMessageA(hProgressWnd, PBM_STEPIT, 0, 0) == 80, "PBM_STEPIT must return the previous position\n");
ok(!GetUpdateRect(hProgressWnd, NULL, FALSE), "PBM_STEPIT: The progress bar should be redrawn immediately\n");
- ok((UINT)SendMessageA(hProgressWnd, PBM_GETPOS, 0, 0) == 100, "PBM_GETPOS returned a wrong position\n");
+ ret = SendMessageA(hProgressWnd, PBM_GETPOS, 0, 0);
+ if (ret == 0)
+ win_skip("PBM_GETPOS needs comctl32 > 4.70\n");
+ else
+ ok(ret == 100, "PBM_GETPOS returned a wrong position : %d\n", (UINT)ret);
/* PBM_SETRANGE and PBM_SETRANGE32:
Usually the progress bar doesn't repaint itself immediately. If the
--
1.6.2.5
--------------020905030001030906020302--
More information about the wine-patches
mailing list