Author: tkreuzer
Date: Fri Apr 6 18:24:59 2007
New Revision: 26269
URL:
http://svn.reactos.org/svn/reactos?rev=26269&view=rev
Log:
fix warnings on gcc 4.1.2
Modified:
trunk/rosapps/devutils/gdihv/handlelist.c
trunk/rosapps/devutils/gdihv/mainwnd.c
trunk/rosapps/devutils/gdihv/proclist.c
Modified: trunk/rosapps/devutils/gdihv/handlelist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/devutils/gdihv/handlelist.…
==============================================================================
--- trunk/rosapps/devutils/gdihv/handlelist.c (original)
+++ trunk/rosapps/devutils/gdihv/handlelist.c Fri Apr 6 18:24:59 2007
@@ -32,31 +32,31 @@
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 @@
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 @@
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);
Modified: trunk/rosapps/devutils/gdihv/mainwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/devutils/gdihv/mainwnd.c?r…
==============================================================================
--- trunk/rosapps/devutils/gdihv/mainwnd.c (original)
+++ trunk/rosapps/devutils/gdihv/mainwnd.c Fri Apr 6 18:24:59 2007
@@ -64,7 +64,7 @@
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 @@
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;
Modified: trunk/rosapps/devutils/gdihv/proclist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/devutils/gdihv/proclist.c?…
==============================================================================
--- trunk/rosapps/devutils/gdihv/proclist.c (original)
+++ trunk/rosapps/devutils/gdihv/proclist.c Fri Apr 6 18:24:59 2007
@@ -32,11 +32,11 @@
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 @@
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 @@
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 @@
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);