Use address of tab_item.extra when building drawitemstruct.

This commit is contained in:
Thorsten Kani 2004-10-26 00:22:31 +00:00 committed by Alexandre Julliard
parent 535679aec7
commit d93d3d5ada

View File

@ -1659,8 +1659,7 @@ TAB_DrawItemInterior
dis.hwndItem = hwnd; /* */
dis.hDC = hdc;
CopyRect(&dis.rcItem,drawRect);
dis.itemData = 0;
memcpy( &dis.itemData, TAB_GetItem(infoPtr, iItem)->extra, min(sizeof(dis.itemData),infoPtr->cbInfo) );
dis.itemData = (ULONG_PTR)TAB_GetItem(infoPtr, iItem)->extra;
/*
* send the draw message