comctl32/tab: Fully initialize itemData to fix x64 test failure.
This commit is contained in:
parent
6ee16099a3
commit
b6484ccbeb
|
@ -1770,6 +1770,7 @@ TAB_DrawItemInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
|
||||||
{
|
{
|
||||||
/* this could be considered broken on 64 bit, but that's how it works -
|
/* this could be considered broken on 64 bit, but that's how it works -
|
||||||
only first 4 bytes are copied */
|
only first 4 bytes are copied */
|
||||||
|
dis.itemData = 0;
|
||||||
memcpy(&dis.itemData, (ULONG_PTR*)TAB_GetItem(infoPtr, iItem)->extra, 4);
|
memcpy(&dis.itemData, (ULONG_PTR*)TAB_GetItem(infoPtr, iItem)->extra, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue