Mike McCormack : comctl32: Get rid of some incorrect casts.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 20 15:36:22 CST 2006


Module: wine
Branch: refs/heads/master
Commit: ecaa525a3f153e9b7bc6e5e1a2bd5ef9557596c0
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=ecaa525a3f153e9b7bc6e5e1a2bd5ef9557596c0

Author: Mike McCormack <mike at codeweavers.com>
Date:   Sun Mar 19 13:00:47 2006 +0900

comctl32: Get rid of some incorrect casts.

---

 dlls/comctl32/listview.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index cab119a..5ee4b2b 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -6740,7 +6740,7 @@ static BOOL LISTVIEW_SetColumnWidth(LIST
 	    hdi.mask = HDI_TEXT;
 	    hdi.cchTextMax = DISP_TEXT_SIZE;
 	    hdi.pszText = szDispText;
-	    if (Header_GetItemW(infoPtr->hwndHeader, nColumn, (LPARAM)&hdi))
+	    if (Header_GetItemW(infoPtr->hwndHeader, nColumn, &hdi))
 	    {
 		HDC hdc = GetDC(infoPtr->hwndSelf);
 		HFONT old_font = SelectObject(hdc, (HFONT)SendMessageW(infoPtr->hwndHeader, WM_GETFONT, 0, 0));
@@ -6762,7 +6762,7 @@ static BOOL LISTVIEW_SetColumnWidth(LIST
     hdi.mask = HDI_WIDTH;
     hdi.cxy = cx;
     TRACE("hdi.cxy=%d\n", hdi.cxy);
-    return Header_SetItemW(infoPtr->hwndHeader, nColumn, (LPARAM)&hdi);
+    return Header_SetItemW(infoPtr->hwndHeader, nColumn, &hdi);
 }
 
 /***
@@ -8385,7 +8385,7 @@ static LRESULT LISTVIEW_HeaderNotificati
     		HDITEMW hdi;
     
 		hdi.mask = HDI_WIDTH;
-    		if (!Header_GetItemW(infoPtr->hwndHeader, lpnmh->iItem, (LPARAM)&hdi)) return 0;
+    		if (!Header_GetItemW(infoPtr->hwndHeader, lpnmh->iItem, &hdi)) return 0;
 		cxy = hdi.cxy;
 	    }
 	    else




More information about the wine-cvs mailing list