[1/2] comctl32/listview: Use neutral LVITEM in ListView_SetItemState macro
Nikolay Sivov
bunglehead at gmail.com
Tue May 12 17:25:09 CDT 2009
Changelog:
- Use neutral LVITEM in ListView_SetItemState macro
>From 75043611278b45768e1ebe9b32a7031eac481f3b Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue, 12 May 2009 23:16:59 +0400
Subject: 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) \
--
1.5.6.5
More information about the wine-patches
mailing list