diff --git a/reactos/base/applications/servman/delete.c b/reactos/base/applications/servman/delete.c index 7cfd4dbc617..b544155082e 100644 --- a/reactos/base/applications/servman/delete.c +++ b/reactos/base/applications/servman/delete.c @@ -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, diff --git a/reactos/base/applications/servman/mainwnd.c b/reactos/base/applications/servman/mainwnd.c index c578ec6f55b..4cc53675d2a 100644 --- a/reactos/base/applications/servman/mainwnd.c +++ b/reactos/base/applications/servman/mainwnd.c @@ -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; diff --git a/reactos/base/applications/servman/query.c b/reactos/base/applications/servman/query.c index f64bc184d49..d65a8a20610 100644 --- a/reactos/base/applications/servman/query.c +++ b/reactos/base/applications/servman/query.c @@ -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);