fix build for w3seek and his gcc 4.1 crew ;)

svn path=/trunk/; revision=22160
This commit is contained in:
Ged Murphy 2006-06-01 21:12:55 +00:00
parent f5276cb1a9
commit 2c1f99e2c2
3 changed files with 29 additions and 29 deletions

View file

@ -122,8 +122,8 @@ DeleteDialogProc(HWND hDlg,
{
case IDOK:
if (DoDeleteService(Info, hDlg))
ListView_DeleteItem(Info->hListView,
Info->SelectedItem);
(void)ListView_DeleteItem(Info->hListView,
Info->SelectedItem);
DestroyIcon(hIcon);
EndDialog(hDlg,

View file

@ -277,8 +277,8 @@ CreateListView(PMAIN_WND_INFO Info)
return FALSE;
}
ListView_SetExtendedListViewStyle(Info->hListView,
LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP);/*LVS_EX_GRIDLINES |*/
(void)ListView_SetExtendedListViewStyle(Info->hListView,
LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP);/*LVS_EX_GRIDLINES |*/
lvc.mask = LVCF_TEXT | LVCF_SUBITEM | LVCF_WIDTH | LVCF_FMT;
lvc.fmt = LVCFMT_LEFT;
@ -293,9 +293,9 @@ CreateListView(PMAIN_WND_INFO Info)
szTemp,
sizeof(szTemp) / sizeof(TCHAR));
lvc.pszText = szTemp;
ListView_InsertColumn(Info->hListView,
0,
&lvc);
(void)ListView_InsertColumn(Info->hListView,
0,
&lvc);
/* description */
lvc.iSubItem = 1;
@ -305,9 +305,9 @@ CreateListView(PMAIN_WND_INFO Info)
szTemp,
sizeof(szTemp) / sizeof(TCHAR));
lvc.pszText = szTemp;
ListView_InsertColumn(Info->hListView,
1,
&lvc);
(void)ListView_InsertColumn(Info->hListView,
1,
&lvc);
/* status */
lvc.iSubItem = 2;
@ -317,9 +317,9 @@ CreateListView(PMAIN_WND_INFO Info)
szTemp,
sizeof(szTemp) / sizeof(TCHAR));
lvc.pszText = szTemp;
ListView_InsertColumn(Info->hListView,
2,
&lvc);
(void)ListView_InsertColumn(Info->hListView,
2,
&lvc);
/* startup type */
lvc.iSubItem = 3;
@ -329,9 +329,9 @@ CreateListView(PMAIN_WND_INFO Info)
szTemp,
sizeof(szTemp) / sizeof(TCHAR));
lvc.pszText = szTemp;
ListView_InsertColumn(Info->hListView,
3,
&lvc);
(void)ListView_InsertColumn(Info->hListView,
3,
&lvc);
/* logon as */
lvc.iSubItem = 4;
@ -341,9 +341,9 @@ CreateListView(PMAIN_WND_INFO Info)
szTemp,
sizeof(szTemp) / sizeof(TCHAR));
lvc.pszText = szTemp;
ListView_InsertColumn(Info->hListView,
4,
&lvc);
(void)ListView_InsertColumn(Info->hListView,
4,
&lvc);
return TRUE;
}
@ -660,9 +660,9 @@ MainWndProc(HWND hwnd,
{
LPNMLISTVIEW pnmv = (LPNMLISTVIEW) lParam;
ListView_SortItems(Info->hListView,
CompareFunc,
pnmv->iSubItem);
(void)ListView_SortItems(Info->hListView,
CompareFunc,
pnmv->iSubItem);
bSortAscending = !bSortAscending;
}
break;

View file

@ -251,12 +251,12 @@ InitListViewImage(PMAIN_WND_INFO Info)
hLgIconItem);
/* assign the image to the list view */
ListView_SetImageList(Info->hListView,
hSmall,
LVSIL_SMALL);
ListView_SetImageList(Info->hListView,
hLarge,
LVSIL_NORMAL);
(void)ListView_SetImageList(Info->hListView,
hSmall,
LVSIL_SMALL);
(void)ListView_SetImageList(Info->hListView,
hLarge,
LVSIL_NORMAL);
}
@ -272,7 +272,7 @@ RefreshServiceList(PMAIN_WND_INFO Info)
DWORD Index;
LPCTSTR Path = _T("System\\CurrentControlSet\\Services\\%s");
ListView_DeleteAllItems(Info->hListView);
(void)ListView_DeleteAllItems(Info->hListView);
InitListViewImage(Info);