[ros-diffs] [cwittich] 41324: partial sync of shell32 shfldr_netplaces

cwittich at svn.reactos.org cwittich at svn.reactos.org
Sun Jun 7 12:43:51 CEST 2009


Author: cwittich
Date: Sun Jun  7 14:43:50 2009
New Revision: 41324

URL: http://svn.reactos.org/svn/reactos?rev=41324&view=rev
Log:
partial sync of shell32 shfldr_netplaces

Modified:
    trunk/reactos/dll/win32/shell32/shfldr_netplaces.c

Modified: trunk/reactos/dll/win32/shell32/shfldr_netplaces.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shfldr_netplaces.c?rev=41324&r1=41323&r2=41324&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shfldr_netplaces.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shfldr_netplaces.c [iso-8859-1] Sun Jun  7 14:43:50 2009
@@ -44,9 +44,9 @@
 #define _IPersistFolder2_Offset ((int)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2)))
 #define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset);
 
-#define _IUnknown_(This)	(IUnknown*)&(This->lpVtbl)
-#define _IShellFolder_(This)	(IShellFolder*)&(This->lpVtbl)
-#define _IPersistFolder2_(This)	(IPersistFolder2*)&(This->lpVtblPersistFolder2)
+#define _IUnknown_(This)        ((IUnknown*)&(This)->lpVtbl)
+#define _IShellFolder_(This)    ((IShellFolder*)&(This)->lpVtbl)
+#define _IPersistFolder2_(This) (&(This)->lpVtblPersistFolder2)
 
 static shvheader NetworkPlacesSFHeader[] = {
     {IDS_SHV_COLUMN8, SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_RIGHT, 15},
@@ -76,7 +76,7 @@
     if (pUnkOuter)
         return CLASS_E_NOAGGREGATION;
 
-    sf = (IGenericSFImpl *) HeapAlloc ( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof (IGenericSFImpl));
+    sf = HeapAlloc (GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof (IGenericSFImpl));
     if (!sf)
         return E_OUTOFMEMORY;
 
@@ -85,7 +85,7 @@
     sf->lpVtblPersistFolder2 = &vt_NP_PersistFolder2;
     sf->pidlRoot = _ILCreateNetHood();	/* my qualified pidl */
 
-    if (!SUCCEEDED (IUnknown_QueryInterface (_IUnknown_ (sf), riid, ppv)))
+    if (FAILED (IUnknown_QueryInterface (_IUnknown_ (sf), riid, ppv)))
     {
         IUnknown_Release (_IUnknown_ (sf));
         return E_NOINTERFACE;
@@ -255,7 +255,7 @@
     HRESULT hr = E_INVALIDARG;
 
     TRACE ("(%p)->(hwnd=%p,%s,%p)\n", This,
-            hwndOwner, shdebugstr_guid (riid), ppvOut);
+           hwndOwner, shdebugstr_guid (riid), ppvOut);
 
     if (!ppvOut)
         return hr;



More information about the Ros-diffs mailing list