Module: wine Branch: master Commit: c075d5aafda9308ec88ec8b640976fb73ec210d1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c075d5aafda9308ec88ec8b640...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Mar 14 12:59:17 2016 +0300
comctl32/monthcal: MCM_GETRANGE does not return BOOL values.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/comctl32/monthcal.c | 2 +- dlls/comctl32/tests/monthcal.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 5accbe6..c68a073 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -1503,7 +1503,7 @@ MONTHCAL_GetRange(const MONTHCAL_INFO *infoPtr, SYSTEMTIME *range) { TRACE("%p\n", range);
- if(!range) return FALSE; + if (!range) return 0;
range[1] = infoPtr->maxDate; range[0] = infoPtr->minDate; diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c index c0d296a..792f66e 100644 --- a/dlls/comctl32/tests/monthcal.c +++ b/dlls/comctl32/tests/monthcal.c @@ -304,6 +304,9 @@ static void test_monthcal(void) expect(0, st[1].wSecond); expect(0, st[1].wMilliseconds);
+ limits = SendMessageA(hwnd, MCM_GETRANGE, 0, 0); + ok(limits == 0, "got %u\n", limits); + GetSystemTime(&st[0]); st[1] = st[0];