Module: wine Branch: master Commit: 5777a3d6cfd4cef045895f56f13cc0efc338de3a URL: http://source.winehq.org/git/wine.git/?a=commit;h=5777a3d6cfd4cef045895f56f1...
Author: Paul Vriens paul.vriens.wine@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);