From 5777a3d6cfd4cef045895f56f13cc0efc338de3a Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Mon, 9 Jun 2008 09:16:56 +0200 Subject: [PATCH] comdlg32/tests: Use GetModuleHandle instead of LoadLibrary. --- dlls/comdlg32/tests/printdlg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c index 31e57cf8ea8..fef274de27b 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); -- 2.11.4.GIT