Use address of tab_item.extra when building drawitemstruct.
This commit is contained in:
parent
535679aec7
commit
d93d3d5ada
@ -1659,8 +1659,7 @@ TAB_DrawItemInterior
|
|||||||
dis.hwndItem = hwnd; /* */
|
dis.hwndItem = hwnd; /* */
|
||||||
dis.hDC = hdc;
|
dis.hDC = hdc;
|
||||||
CopyRect(&dis.rcItem,drawRect);
|
CopyRect(&dis.rcItem,drawRect);
|
||||||
dis.itemData = 0;
|
dis.itemData = (ULONG_PTR)TAB_GetItem(infoPtr, iItem)->extra;
|
||||||
memcpy( &dis.itemData, TAB_GetItem(infoPtr, iItem)->extra, min(sizeof(dis.itemData),infoPtr->cbInfo) );
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* send the draw message
|
* send the draw message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user