Nikolay Sivov : comctl32/monthcal: MCM_GETRANGE does not return BOOL values.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 14 09:05:21 CDT 2016
Module: wine
Branch: master
Commit: c075d5aafda9308ec88ec8b640976fb73ec210d1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c075d5aafda9308ec88ec8b640976fb73ec210d1
Author: Nikolay Sivov <nsivov at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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];
More information about the wine-cvs
mailing list