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

Alexandre Julliard julliard at winehq.org
Mon Jun 9 13:17:13 CDT 2008


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Mon Jun  9 09:16:56 2008 +0200

comdlg32/tests: Use GetModuleHandle instead of LoadLibrary.

---

 dlls/comdlg32/tests/printdlg.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c
index 31e57cf..fef274d 100644
--- a/dlls/comdlg32/tests/printdlg.c
+++ b/dlls/comdlg32/tests/printdlg.c
@@ -51,8 +51,7 @@ static LPCSTR load_functions(void)
     LPCSTR  ptr;
 
     ptr = "comdlg32.dll";
-    hcomdlg32 = LoadLibraryA(ptr);
-    if (!hcomdlg32) return ptr;
+    hcomdlg32 = GetModuleHandleA(ptr);
 
     ptr = "PrintDlgExA";
     pPrintDlgExA = (void *) GetProcAddress(hcomdlg32, ptr);




More information about the wine-cvs mailing list