Module: wine Branch: master Commit: afaa6d463549172806d1aa1dfcc711f064c2dec1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=afaa6d463549172806d1aa1dfc...
Author: Nikolay Sivov bunglehead@gmail.com Date: Tue May 12 23:16:59 2009 +0400
comctl32/listview: Use neutral LVITEM in ListView_SetItemState macro.
---
include/commctrl.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/commctrl.h b/include/commctrl.h index 5561e1d..7f431e3 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) \