From afaa6d463549172806d1aa1dfcc711f064c2dec1 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 12 May 2009 23:16:59 +0400 Subject: [PATCH] comctl32/listview: Use neutral LVITEM in ListView_SetItemState macro. --- include/commctrl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/commctrl.h b/include/commctrl.h index 5561e1dbacf..7f431e31584 100644 --- a/include/commctrl.h +++ b/include/commctrl.h @@ -3720,8 +3720,8 @@ typedef struct NMLVSCROLL (INT)SNDMSGW((hwnd),LVM_SETITEMW,0,(LPARAM)(const LVITEMW *)(pitem)) #define ListView_SetItem WINELIB_NAME_AW(ListView_SetItem) #define ListView_SetItemState(hwnd,i,data,dataMask) \ -{ LVITEMA _LVi; _LVi.state = data; _LVi.stateMask = dataMask;\ - SNDMSG(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEMA)&_LVi);} +{ LVITEM _LVi; _LVi.state = data; _LVi.stateMask = dataMask;\ + SNDMSG(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEM)&_LVi);} #define ListView_GetItemState(hwnd,i,mask) \ (UINT)SNDMSG((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask)) #define ListView_GetCountPerPage(hwnd) \ -- 2.11.4.GIT