comctl32: Fix a typo.
This commit is contained in:
parent
7b99592975
commit
5cdcfbfaa0
|
@ -428,12 +428,10 @@ static void TestGetSetItemHeight(void)
|
||||||
ulNewHeight = (int) SendMessage( hTree, TVM_GETITEMHEIGHT, 0, 0 );
|
ulNewHeight = (int) SendMessage( hTree, TVM_GETITEMHEIGHT, 0, 0 );
|
||||||
ok(ulNewHeight == 2*ulOldHeight, "New height not set properly, reported %d, expected %d\n", ulNewHeight, 2*ulOldHeight);
|
ok(ulNewHeight == 2*ulOldHeight, "New height not set properly, reported %d, expected %d\n", ulNewHeight, 2*ulOldHeight);
|
||||||
|
|
||||||
todo_wine {
|
/* Assuming tree doesn't have TVS_NONEVENHEIGHT set, so a set of 9 will round down to 8 */
|
||||||
/* Assuming tree doesn't have TVS_NONEVENHEIGHT set, so a set of 9 will round down to 8 */
|
SendMessage( hTree, TVM_SETITEMHEIGHT, 9, 0 );
|
||||||
SendMessage( hTree, TVM_SETITEMHEIGHT, 9, 0 );
|
ulNewHeight = (int) SendMessage( hTree, TVM_GETITEMHEIGHT, 0, 0 );
|
||||||
ulNewHeight = (int) SendMessage( hTree, TVM_GETITEMHEIGHT, 0, 0 );
|
ok(ulNewHeight == 8, "Uneven height not set properly, reported %d, expected %d\n", ulNewHeight, 8);
|
||||||
ok(ulNewHeight == 8, "Uneven height not set properly, reported %d, expected %d\n", ulNewHeight, 8);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void TestGetSetScrollTime(void)
|
static void TestGetSetScrollTime(void)
|
||||||
|
|
|
@ -1825,7 +1825,7 @@ TREEVIEW_SetItemHeight(TREEVIEW_INFO *infoPtr, INT newHeight)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Round down, unless we support odd ("non even") heights. */
|
/* Round down, unless we support odd ("non even") heights. */
|
||||||
if (!(infoPtr->dwStyle) & TVS_NONEVENHEIGHT)
|
if (!(infoPtr->dwStyle & TVS_NONEVENHEIGHT))
|
||||||
infoPtr->uItemHeight &= ~1;
|
infoPtr->uItemHeight &= ~1;
|
||||||
|
|
||||||
if (infoPtr->uItemHeight != prevHeight)
|
if (infoPtr->uItemHeight != prevHeight)
|
||||||
|
|
Loading…
Reference in New Issue