comctl32: Get rid of some incorrect casts.
This commit is contained in:
parent
506fe445e3
commit
ecaa525a3f
|
@ -6740,7 +6740,7 @@ static BOOL LISTVIEW_SetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx)
|
|||
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(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx)
|
|||
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_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue