Francois Gouget : mlang/tests: We already link with mlang. dll so there is no need to do a LoadLibrary() on it.
Alexandre Julliard
julliard at winehq.org
Wed Jul 3 15:02:19 CDT 2013
Module: wine
Branch: master
Commit: 28139bceebd968692c78f287553513f2caa59011
URL: http://source.winehq.org/git/wine.git/?a=commit;h=28139bceebd968692c78f287553513f2caa59011
Author: Francois Gouget <fgouget at free.fr>
Date: Wed Jul 3 12:15:32 2013 +0200
mlang/tests: We already link with mlang.dll so there is no need to do a LoadLibrary() on it.
---
dlls/mlang/tests/mlang.c | 8 +-------
1 files changed, 1 insertions(+), 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");
More information about the wine-cvs
mailing list