Author: weiden
Date: Sat Sep 30 15:54:37 2006
New Revision: 24314
URL:
http://svn.reactos.org/svn/reactos?rev=24314&view=rev
Log:
Fix GCC4 warnings
Modified:
trunk/reactos/base/applications/devmgmt/enumdevices.c
Modified: trunk/reactos/base/applications/devmgmt/enumdevices.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/devmgmt/…
==============================================================================
--- trunk/reactos/base/applications/devmgmt/enumdevices.c (original)
+++ trunk/reactos/base/applications/devmgmt/enumdevices.c Sat Sep 30 15:54:37 2006
@@ -105,7 +105,7 @@
if (KeyClass != INVALID_HANDLE_VALUE)
{
- DWORD dwSize = MAX_CLASS_NAME_LEN;
+ LONG dwSize = MAX_CLASS_NAME_LEN;
if (RegQueryValue(KeyClass,
NULL,
@@ -292,14 +292,14 @@
if (!TreeView_GetChild(Info->hTreeView,
hDevItem))
{
- TreeView_DeleteItem(Info->hTreeView,
- hDevItem);
+ (void)TreeView_DeleteItem(Info->hTreeView,
+ hDevItem);
}
else
{
- TreeView_SortChildren(Info->hTreeView,
- hDevItem,
- 0);
+ (void)TreeView_SortChildren(Info->hTreeView,
+ hDevItem,
+ 0);
}
}
@@ -307,13 +307,13 @@
} while (ClassRet != -1);
- TreeView_Expand(Info->hTreeView,
- hRoot,
- TVE_EXPAND);
-
- TreeView_SortChildren(Info->hTreeView,
+ (void)TreeView_Expand(Info->hTreeView,
hRoot,
- 0);
+ TVE_EXPAND);
+
+ (void)TreeView_SortChildren(Info->hTreeView,
+ hRoot,
+ 0);
}
@@ -326,7 +326,7 @@
DWORD dwSize = MAX_PATH;
INT RootImage;
- TreeView_DeleteAllItems(Info->hTreeView);
+ (void)TreeView_DeleteAllItems(Info->hTreeView);
/* get the device image List */
ImageListData.cbSize = sizeof(ImageListData);
@@ -341,9 +341,9 @@
DeleteObject(hComp);
- TreeView_SetImageList(Info->hTreeView,
- ImageListData.ImageList,
- TVSIL_NORMAL);
+ (void)TreeView_SetImageList(Info->hTreeView,
+ ImageListData.ImageList,
+ TVSIL_NORMAL);
if (!GetComputerName(ComputerName,
&dwSize))