comctl32/tab: Fully initialize itemData to fix x64 test failure.

This commit is contained in:
Alasdair Sinclair 2011-06-01 03:24:30 +01:00 committed by Alexandre Julliard
parent 6ee16099a3
commit b6484ccbeb
1 changed files with 1 additions and 0 deletions

View File

@ -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 -
only first 4 bytes are copied */
dis.itemData = 0;
memcpy(&dis.itemData, (ULONG_PTR*)TAB_GetItem(infoPtr, iItem)->extra, 4);
}