From b6484ccbebb67d107934f9b6d4a142eb70ac946d Mon Sep 17 00:00:00 2001 From: Alasdair Sinclair Date: Wed, 1 Jun 2011 03:24:30 +0100 Subject: [PATCH] comctl32/tab: Fully initialize itemData to fix x64 test failure. --- dlls/comctl32/tab.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 0424f7f9c0f..1ad8c530e2b 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -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); }