Commit 5777a3d6 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

comdlg32/tests: Use GetModuleHandle instead of LoadLibrary.

parent 853db9a7
...@@ -51,8 +51,7 @@ static LPCSTR load_functions(void) ...@@ -51,8 +51,7 @@ static LPCSTR load_functions(void)
LPCSTR ptr; LPCSTR ptr;
ptr = "comdlg32.dll"; ptr = "comdlg32.dll";
hcomdlg32 = LoadLibraryA(ptr); hcomdlg32 = GetModuleHandleA(ptr);
if (!hcomdlg32) return ptr;
ptr = "PrintDlgExA"; ptr = "PrintDlgExA";
pPrintDlgExA = (void *) GetProcAddress(hcomdlg32, ptr); pPrintDlgExA = (void *) GetProcAddress(hcomdlg32, ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment