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>
This commit is contained in:
Nikolay Sivov 2016-03-14 12:59:17 +03:00 committed by Alexandre Julliard
parent 17169816cd
commit c075d5aafd
2 changed files with 4 additions and 1 deletions

View File

@ -1503,7 +1503,7 @@ MONTHCAL_GetRange(const MONTHCAL_INFO *infoPtr, SYSTEMTIME *range)
{ {
TRACE("%p\n", range); TRACE("%p\n", range);
if(!range) return FALSE; if (!range) return 0;
range[1] = infoPtr->maxDate; range[1] = infoPtr->maxDate;
range[0] = infoPtr->minDate; range[0] = infoPtr->minDate;

View File

@ -304,6 +304,9 @@ static void test_monthcal(void)
expect(0, st[1].wSecond); expect(0, st[1].wSecond);
expect(0, st[1].wMilliseconds); expect(0, st[1].wMilliseconds);
limits = SendMessageA(hwnd, MCM_GETRANGE, 0, 0);
ok(limits == 0, "got %u\n", limits);
GetSystemTime(&st[0]); GetSystemTime(&st[0]);
st[1] = st[0]; st[1] = st[0];