Author: khornicek
Date: Thu Oct 16 03:50:56 2008
New Revision: 36765
URL:
http://svn.reactos.org/svn/reactos?rev=36765&view=rev
Log:
- remove dead code, fixes CID 60, CID 61
Modified:
trunk/reactos/dll/cpl/desk/advmon.c
trunk/reactos/dll/cpl/desk/settings.c
Modified: trunk/reactos/dll/cpl/desk/advmon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/advmon.c?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/desk/advmon.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/advmon.c [iso-8859-1] Thu Oct 16 03:50:56 2008
@@ -86,7 +86,9 @@
HPSXA hpsxaDev, hpsxaDisp;
BOOL Ret;
IDataObject *pdo;
+#ifdef _MSC_VER
HMODULE hShell32 = NULL;
+#endif
CPSEAE msvc_SHCreatePropSheetExtArrayEx;
/* silence gcc warning */
@@ -140,8 +142,10 @@
IDataObject_Release(pdo);
+#ifdef _MSC_VER
if (hShell32)
FreeLibrary(hShell32);
+#endif
return Ret;
}
Modified: trunk/reactos/dll/cpl/desk/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/settings.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/desk/settings.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/settings.c [iso-8859-1] Thu Oct 16 03:50:56 2008
@@ -243,8 +243,6 @@
HeapFree(GetProcessHeap(), 0, name);
if (key != NULL)
HeapFree(GetProcessHeap(), 0, key);
- if (devid != NULL)
- HeapFree(GetProcessHeap(), 0, devid);
return FALSE;
}