From d93d3d5ada4a8a553f9783ad726ad4adad0f8bda Mon Sep 17 00:00:00 2001 From: Thorsten Kani Date: Tue, 26 Oct 2004 00:22:31 +0000 Subject: [PATCH] Use address of tab_item.extra when building drawitemstruct. --- dlls/comctl32/tab.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 44b42aa518..efdf955db6 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -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