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/st…
==============================================================================
--- 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;