[ros-diffs] [weiden] 33915: shlwapi.dll is already loaded, no need to use LoadLibrary

weiden at svn.reactos.org weiden at svn.reactos.org
Tue Jun 10 05:13:12 CEST 2008


Author: weiden
Date: Mon Jun  9 22:13:12 2008
New Revision: 33915

URL: http://svn.reactos.org/svn/reactos?rev=33915&view=rev
Log:
shlwapi.dll is already loaded, no need to use LoadLibrary

Modified:
    trunk/reactos/base/shell/explorer-new/startmnu.c

Modified: trunk/reactos/base/shell/explorer-new/startmnu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/startmnu.c?rev=33915&r1=33914&r2=33915&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer-new/startmnu.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer-new/startmnu.c [iso-8859-1] Mon Jun  9 22:13:12 2008
@@ -478,7 +478,7 @@
 
     DbgPrint("IStartMenuCallback::Execute\n");
 
-    hShlwapi = LoadLibrary(TEXT("SHLWAPI.DLL"));
+    hShlwapi = GetModuleHandle(TEXT("SHLWAPI.DLL"));
     if (hShlwapi != NULL)
     {
         SHINVDEFCMD SHInvokeDefCmd;
@@ -492,8 +492,6 @@
                                  pShellFolder,
                                  pidl);
         }
-
-        FreeLibrary(hShlwapi);
     }
 
     return ret;



More information about the Ros-diffs mailing list