Francois Gouget : mlang/tests: We already link with mlang. dll so there is no need to do a LoadLibrary() on it.
Module: wine Branch: master Commit: 28139bceebd968692c78f287553513f2caa59011 URL: http://source.winehq.org/git/wine.git/?a=commit;h=28139bceebd968692c78f28755... Author: Francois Gouget <fgouget(a)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");
participants (1)
-
Alexandre Julliard