mlang/tests: We already link with mlang.dll so there is no need to do a LoadLibrary() on it.

Francois Gouget fgouget at free.fr
Wed Jul 3 05:15:32 CDT 2013


---
 dlls/mlang/tests/mlang.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c
index 0da31b5..1d52af6 100644
--- a/dlls/mlang/tests/mlang.c
+++ b/dlls/mlang/tests/mlang.c
@@ -230,13 +230,7 @@ static BOOL init_function_ptrs(void)
 {
     HMODULE hMlang;
 
-    hMlang = LoadLibraryA("mlang.dll");
-    if (!hMlang)
-    {
-        skip("mlang not available\n");
-        return FALSE;
-    }
-
+    hMlang = GetModuleHandleA("mlang.dll");
     pConvertINetMultiByteToUnicode = (void *)GetProcAddress(hMlang, "ConvertINetMultiByteToUnicode");
     pConvertINetUnicodeToMultiByte = (void *)GetProcAddress(hMlang, "ConvertINetUnicodeToMultiByte");
     pRfc1766ToLcidA = (void *)GetProcAddress(hMlang, "Rfc1766ToLcidA");
-- 
1.7.10.4




More information about the wine-patches mailing list