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:
parent
17169816cd
commit
c075d5aafd
|
@ -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;
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue