[PATCH] comctl32/monthcal: MCM_GETRANGE does not return BOOL values
Nikolay Sivov
nsivov at codeweavers.com
Mon Mar 14 04:59:17 CDT 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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];
--
2.7.0
More information about the wine-patches
mailing list