Author: rharabien
Date: Tue Jan 17 22:33:11 2012
New Revision: 54998
URL:
http://svn.reactos.org/svn/reactos?rev=54998&view=rev
Log:
[NETSHELL]
- Display proper icons in network connections folder
Modified:
trunk/reactos/dll/win32/netshell/shfldr_netconnect.c
Modified: trunk/reactos/dll/win32/netshell/shfldr_netconnect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/shfldr_…
==============================================================================
--- trunk/reactos/dll/win32/netshell/shfldr_netconnect.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/shfldr_netconnect.c [iso-8859-1] Tue Jan 17 22:33:11
2012
@@ -83,7 +83,6 @@
{
return (LPIContextMenuImpl)((char *)iface - FIELD_OFFSET(IContextMenuImpl,
lpVtblExtractIconW));
}
-
static __inline LPIContextMenuImpl impl_from_IObjectWithSite(IObjectWithSite *iface)
{
@@ -1176,19 +1175,28 @@
*pwFlags = 0;
if (!GetModuleFileNameW(netshell_hInstance, szIconFile, cchMax))
+ {
+ ERR("GetModuleFileNameW failed\n");
return E_FAIL;
+ }
val = _ILGetValueStruct(This->apidl);
if (!val)
+ {
+ ERR("_ILGetValueStruct failed\n");
return E_FAIL;
+ }
if (INetConnection_GetProperties(val->pItem, &pProperties) != NOERROR)
+ {
+ ERR("INetConnection_GetProperties failed\n");
return E_FAIL;
+ }
if (pProperties->Status == NCS_CONNECTED || pProperties->Status ==
NCS_CONNECTING)
- *piIndex = IDI_NET_IDLE;
+ *piIndex = -IDI_NET_IDLE;
else
- *piIndex = IDI_NET_OFF;
+ *piIndex = -IDI_NET_OFF;
NcFreeNetconProperties(pProperties);