winecfg: Eliminate some gcc 4.1 warnings caused by casts in macros.
This commit is contained in:
parent
959edd5cc4
commit
abfc9b8c27
|
@ -205,7 +205,7 @@ static void initAudioDeviceTree(HWND hDlg)
|
||||||
hBitMap = LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_CHECKBOX));
|
hBitMap = LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_CHECKBOX));
|
||||||
ImageList_Add(hImageList, hBitMap, NULL);
|
ImageList_Add(hImageList, hBitMap, NULL);
|
||||||
DeleteObject(hBitMap);
|
DeleteObject(hBitMap);
|
||||||
TreeView_SetImageList(tree, hImageList, TVSIL_STATE);
|
SendMessageW( tree, LVM_SETIMAGELIST, TVSIL_STATE, (LPARAM)hImageList );
|
||||||
|
|
||||||
/* root item */
|
/* root item */
|
||||||
insert.hParent = TVI_ROOT;
|
insert.hParent = TVI_ROOT;
|
||||||
|
@ -702,14 +702,14 @@ AudioDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
ht.pt.x = GET_X_LPARAM(dwPos);
|
ht.pt.x = GET_X_LPARAM(dwPos);
|
||||||
ht.pt.y = GET_Y_LPARAM(dwPos);
|
ht.pt.y = GET_Y_LPARAM(dwPos);
|
||||||
MapWindowPoints(HWND_DESKTOP, tree, &ht.pt, 1);
|
MapWindowPoints(HWND_DESKTOP, tree, &ht.pt, 1);
|
||||||
TreeView_HitTest(tree, &ht);
|
SendMessageW( tree, TVM_HITTEST, 0, (LPARAM)&ht );
|
||||||
if (TVHT_ONITEMSTATEICON & ht.flags)
|
if (TVHT_ONITEMSTATEICON & ht.flags)
|
||||||
{
|
{
|
||||||
TVITEM tvItem;
|
TVITEM tvItem;
|
||||||
int index;
|
int index;
|
||||||
ZeroMemory(&tvItem, sizeof(tvItem));
|
ZeroMemory(&tvItem, sizeof(tvItem));
|
||||||
tvItem.hItem = ht.hItem;
|
tvItem.hItem = ht.hItem;
|
||||||
TreeView_GetItem(tree, &tvItem);
|
SendMessageW( tree, TVM_GETITEMW, 0, (LPARAM) &tvItem );
|
||||||
|
|
||||||
index = TreeView_GetItemState(tree, ht.hItem, TVIS_STATEIMAGEMASK);
|
index = TreeView_GetItemState(tree, ht.hItem, TVIS_STATEIMAGEMASK);
|
||||||
if (index == INDEXTOSTATEIMAGEMASK(1))
|
if (index == INDEXTOSTATEIMAGEMASK(1))
|
||||||
|
@ -739,7 +739,7 @@ AudioDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
pt.y = GET_Y_LPARAM(dwPos);
|
pt.y = GET_Y_LPARAM(dwPos);
|
||||||
ht.pt = pt;
|
ht.pt = pt;
|
||||||
MapWindowPoints(HWND_DESKTOP, tree, &ht.pt, 1);
|
MapWindowPoints(HWND_DESKTOP, tree, &ht.pt, 1);
|
||||||
TreeView_HitTest(tree, &ht);
|
SendMessageW( tree, TVM_HITTEST, 0, (LPARAM)&ht );
|
||||||
if (TVHT_ONITEMLABEL & ht.flags)
|
if (TVHT_ONITEMLABEL & ht.flags)
|
||||||
{
|
{
|
||||||
TVITEM tvItem;
|
TVITEM tvItem;
|
||||||
|
|
Loading…
Reference in New Issue