mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
fix warnings on gcc 4.1.2
svn path=/trunk/; revision=26269
This commit is contained in:
parent
96924455c4
commit
5f5b06dc4b
3 changed files with 22 additions and 22 deletions
|
@ -32,31 +32,31 @@ HandleList_Create(HWND hListCtrl)
|
|||
|
||||
column.pszText = L"Number";
|
||||
column.cx = 50;
|
||||
ListView_InsertColumn(hListCtrl, 0, &column);
|
||||
(void)ListView_InsertColumn(hListCtrl, 0, &column);
|
||||
|
||||
column.pszText = L"Index";
|
||||
column.cx = 50;
|
||||
ListView_InsertColumn(hListCtrl, 1, &column);
|
||||
column.cx = 45;
|
||||
(void)ListView_InsertColumn(hListCtrl, 1, &column);
|
||||
|
||||
column.pszText = L"Handle";
|
||||
column.cx = 90;
|
||||
ListView_InsertColumn(hListCtrl, 2, &column);
|
||||
(void)ListView_InsertColumn(hListCtrl, 2, &column);
|
||||
|
||||
column.pszText = L"Type";
|
||||
column.cx = 90;
|
||||
ListView_InsertColumn(hListCtrl, 3, &column);
|
||||
column.cx = 80;
|
||||
(void)ListView_InsertColumn(hListCtrl, 3, &column);
|
||||
|
||||
column.pszText = L"Process";
|
||||
column.cx = 90;
|
||||
ListView_InsertColumn(hListCtrl, 4, &column);
|
||||
column.cx = 80;
|
||||
(void)ListView_InsertColumn(hListCtrl, 4, &column);
|
||||
|
||||
column.pszText = L"KernelData";
|
||||
column.cx = 90;
|
||||
ListView_InsertColumn(hListCtrl, 5, &column);
|
||||
column.cx = 80;
|
||||
(void)ListView_InsertColumn(hListCtrl, 5, &column);
|
||||
|
||||
column.pszText = L"UserData";
|
||||
column.cx = 90;
|
||||
ListView_InsertColumn(hListCtrl, 6, &column);
|
||||
column.cx = 80;
|
||||
(void)ListView_InsertColumn(hListCtrl, 6, &column);
|
||||
|
||||
HandleList_Update(hListCtrl, 0);
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ HandleList_Update(HWND hHandleListCtrl, HANDLE ProcessId)
|
|||
TCHAR strText[80];
|
||||
TCHAR* str2;
|
||||
|
||||
ListView_DeleteAllItems(hHandleListCtrl);
|
||||
(void)ListView_DeleteAllItems(hHandleListCtrl);
|
||||
item.mask = LVIF_TEXT|LVIF_PARAM;
|
||||
item.pszText = strText;
|
||||
item.cchTextMax = 80;
|
||||
|
@ -86,7 +86,7 @@ HandleList_Update(HWND hHandleListCtrl, HANDLE ProcessId)
|
|||
item.iSubItem = 0;
|
||||
|
||||
wsprintf(strText, L"%d", index);
|
||||
ListView_InsertItem(hHandleListCtrl, &item);
|
||||
(void)ListView_InsertItem(hHandleListCtrl, &item);
|
||||
|
||||
wsprintf(strText, L"%d", i);
|
||||
ListView_SetItemText(hHandleListCtrl, index, 1, strText);
|
||||
|
|
|
@ -64,7 +64,7 @@ MainWindow_WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
memset(&item, 0, sizeof(LV_ITEM));
|
||||
item.mask = LVIF_PARAM;
|
||||
item.iItem = ListView_GetSelectionMark(hProcessListCtrl);
|
||||
ListView_GetItem(hProcessListCtrl, &item);
|
||||
(void)ListView_GetItem(hProcessListCtrl, &item);
|
||||
HandleList_Update(GetDlgItem(hMainWnd, IDC_HANDLELIST), (HANDLE)item.lParam);
|
||||
break;
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ MainWindow_WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
memset(&item, 0, sizeof(LV_ITEM));
|
||||
item.mask = LVIF_PARAM;
|
||||
item.iItem = ((LPNMLISTVIEW)lParam)->iItem;
|
||||
ListView_GetItem(GetDlgItem(hMainWnd, IDC_PROCESSLIST), &item);
|
||||
(void)ListView_GetItem(GetDlgItem(hMainWnd, IDC_PROCESSLIST), &item);
|
||||
HandleList_Update(GetDlgItem(hMainWnd, IDC_HANDLELIST), (HANDLE)item.lParam);
|
||||
return TRUE;
|
||||
break;
|
||||
|
|
|
@ -32,11 +32,11 @@ ProcessList_Create(HWND hListCtrl)
|
|||
|
||||
column.pszText = L"Process";
|
||||
column.cx = 90;
|
||||
ListView_InsertColumn(hListCtrl, 0, &column);
|
||||
(void)ListView_InsertColumn(hListCtrl, 0, &column);
|
||||
|
||||
column.pszText = L"ProcessID";
|
||||
column.cx = 90;
|
||||
ListView_InsertColumn(hListCtrl, 1, &column);
|
||||
(void)ListView_InsertColumn(hListCtrl, 1, &column);
|
||||
ProcessList_Update(hListCtrl);
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ ProcessList_Update(HWND hListCtrl)
|
|||
WCHAR strText[MAX_PATH] = L"<unknown>";
|
||||
INT i;
|
||||
|
||||
ListView_DeleteAllItems(hListCtrl);
|
||||
(void)ListView_DeleteAllItems(hListCtrl);
|
||||
memset(&item, 0, sizeof(LV_ITEM));
|
||||
item.mask = LVIF_TEXT|LVIF_PARAM;
|
||||
item.pszText = strText;
|
||||
|
@ -58,7 +58,7 @@ ProcessList_Update(HWND hListCtrl)
|
|||
item.iItem = 0;
|
||||
item.lParam = 0;
|
||||
item.pszText = L"<Kernel>";
|
||||
ListView_InsertItem(hListCtrl, &item);
|
||||
(void)ListView_InsertItem(hListCtrl, &item);
|
||||
item.pszText = strText;
|
||||
wsprintf(strText, L"%#08x", 0);
|
||||
ListView_SetItemText(hListCtrl, 0, 1, strText);
|
||||
|
@ -80,13 +80,13 @@ ProcessList_Update(HWND hListCtrl)
|
|||
|
||||
hProcess = 0;
|
||||
/* FIXME: HACK: ROS crashes when using OpenProcess with PROCESS_VM_READ */
|
||||
// hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, ProcessIds[i]);
|
||||
hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, ProcessIds[i]);
|
||||
if (hProcess)
|
||||
{
|
||||
GetModuleBaseName(hProcess, NULL, (LPWSTR)strText, MAX_PATH );
|
||||
CloseHandle(hProcess);
|
||||
}
|
||||
ListView_InsertItem(hListCtrl, &item);
|
||||
(void)ListView_InsertItem(hListCtrl, &item);
|
||||
|
||||
wsprintf(strText, L"%#08x", ProcessIds[i]);
|
||||
ListView_SetItemText(hListCtrl, item.iItem, 1, strText);
|
||||
|
|
Loading…
Reference in a new issue