Paul Vriens : shell32/tests: Use GetModuleHandle instead of LoadLibrary.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 17 06:30:19 CDT 2007


Module: wine
Branch: master
Commit: 968d30514801f3a49c3807ce4a96d2b26da8b581
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=968d30514801f3a49c3807ce4a96d2b26da8b581

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Thu Aug 16 13:12:27 2007 +0200

shell32/tests: Use GetModuleHandle instead of LoadLibrary.

---

 dlls/shell32/tests/shelllink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c
index bdf537e..091522b 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");




More information about the wine-cvs mailing list