From 2edcc21ee5419ed70dea72fe405dd6a2abfd3b29 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Tue, 10 Jun 2008 03:13:12 +0000 Subject: [PATCH] shlwapi.dll is already loaded, no need to use LoadLibrary svn path=/trunk/; revision=33915 --- reactos/base/shell/explorer-new/startmnu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reactos/base/shell/explorer-new/startmnu.c b/reactos/base/shell/explorer-new/startmnu.c index 643cf13e83a..e4ad7b98274 100644 --- a/reactos/base/shell/explorer-new/startmnu.c +++ b/reactos/base/shell/explorer-new/startmnu.c @@ -478,7 +478,7 @@ IStartMenuSiteImpl_Execute(IN OUT IStartMenuCallback *iface, DbgPrint("IStartMenuCallback::Execute\n"); - hShlwapi = LoadLibrary(TEXT("SHLWAPI.DLL")); + hShlwapi = GetModuleHandle(TEXT("SHLWAPI.DLL")); if (hShlwapi != NULL) { SHINVDEFCMD SHInvokeDefCmd; @@ -492,8 +492,6 @@ IStartMenuSiteImpl_Execute(IN OUT IStartMenuCallback *iface, pShellFolder, pidl); } - - FreeLibrary(hShlwapi); } return ret;