From 968d30514801f3a49c3807ce4a96d2b26da8b581 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 16 Aug 2007 13:12:27 +0200 Subject: [PATCH] shell32/tests: Use GetModuleHandle instead of LoadLibrary. --- dlls/shell32/tests/shelllink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index bdf537e0365..091522be32b 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -64,7 +64,7 @@ static LPITEMIDLIST path_to_pidl(const char* path) if (!pSHSimpleIDListFromPathAW) { - HMODULE hdll=LoadLibraryA("shell32.dll"); + HMODULE hdll=GetModuleHandleA("shell32.dll"); pSHSimpleIDListFromPathAW=(void*)GetProcAddress(hdll, (char*)162); if (!pSHSimpleIDListFromPathAW) trace("SHSimpleIDListFromPathAW not found in shell32.dll\n");