James Hawkins : comctl32: Fix a test on locales where default first day of week is not the max value .

Alexandre Julliard julliard at winehq.org
Tue Sep 30 11:16:20 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Sun Sep 28 13:22:20 2008 -0500

comctl32: Fix a test on locales where default first day of week is not the max value.

---

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

diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c
index 271dfd1..6f2ae70 100644
--- a/dlls/comctl32/tests/monthcal.c
+++ b/dlls/comctl32/tests/monthcal.c
@@ -673,7 +673,8 @@ static void test_monthcal_firstDay(HWND hwnd)
             if (i == -1){
                 expect(MAKELONG(fday, FALSE), res);
             }else if (i >= 7){
-                expect(MAKELONG(fday, TRUE), res);
+                /* out of range sets max first day of week, locale is ignored */
+                expect(MAKELONG(6, TRUE), res);
             }else{
                 expect(MAKELONG(i, TRUE), res);
             }




More information about the wine-cvs mailing list