Andrey Gusev : mshtml/tests: Use GetModuleHandleA instead of LoadLibraryA.

Alexandre Julliard julliard at winehq.org
Mon Feb 26 13:42:20 CST 2018


Module: wine
Branch: master
Commit: 80690ecf4da076a98032b9292024973e489b3c65
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=80690ecf4da076a98032b9292024973e489b3c65

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Fri Feb 23 12:08:03 2018 +0200

mshtml/tests: Use GetModuleHandleA instead of LoadLibraryA.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/tests/protocol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mshtml/tests/protocol.c b/dlls/mshtml/tests/protocol.c
index 6376f3f..ebaa630 100644
--- a/dlls/mshtml/tests/protocol.c
+++ b/dlls/mshtml/tests/protocol.c
@@ -603,7 +603,7 @@ static void test_res_protocol(void)
     test_res_url("/Test/res.html");
     test_res_url("/test/dir/dir2/res.html");
 
-    if(GetProcAddress(LoadLibraryA("urlmon.dll"), "CreateUri")) {
+    if(GetProcAddress(GetModuleHandleA("urlmon.dll"), "CreateUri")) {
         test_res_url("/test/dir/dir2/res.html?query_part");
         test_res_url("/test/dir/dir2/res.html#hash_part");
         test_res_url("/#123");




More information about the wine-cvs mailing list