[PATCH] include/commctrl: ListView_SetItemState should be character width agnostic

David Kahurani k.kahurani at gmail.com
Sun Oct 31 10:34:26 CDT 2021


Signed-off-by: David Kahurani <k.kahurani at gmail.com>
---
 include/commctrl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/commctrl.h b/include/commctrl.h
index 41abceb..d67f5f7 100644
--- a/include/commctrl.h
+++ b/include/commctrl.h
@@ -3939,8 +3939,8 @@ typedef struct tagLVITEMINDEX
     (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) \
-{ LVITEM _LVi; _LVi.state = data; _LVi.stateMask = dataMask;\
-  SNDMSG(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEM)&_LVi);}
+{ LVITEMW _LVi; _LVi.state = data; _LVi.stateMask = dataMask;\
+  SNDMSGW(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEMW)&_LVi);}
 #define ListView_GetItemState(hwnd,i,mask) \
     (UINT)SNDMSG((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask))
 #define ListView_SetCheckState(hwndLV, i, bCheck) \
-- 
2.25.1




More information about the wine-devel mailing list