From c845ad8843354c49c243419c36fd6dd2e6a14122 Mon Sep 17 00:00:00 2001 From: Peter Ganten Date: Mon, 7 Aug 2000 04:18:00 +0000 Subject: [PATCH] LoadLibraryEx32W16 should use the search algorithm of 16-bit libraries. --- dlls/kernel/wowthunk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/kernel/wowthunk.c b/dlls/kernel/wowthunk.c index c0e14414982..18dd9ed973c 100644 --- a/dlls/kernel/wowthunk.c +++ b/dlls/kernel/wowthunk.c @@ -13,6 +13,7 @@ #include "stackframe.h" #include "builtin16.h" #include "debugtools.h" +#include "file.h" DEFAULT_DEBUG_CHANNEL(thunk) @@ -295,9 +296,12 @@ DWORD WINAPI GetVDMPointer32W16( SEGPTR vp, UINT16 fMode ) DWORD WINAPI LoadLibraryEx32W16( LPCSTR lpszLibFile, DWORD hFile, DWORD dwFlags ) { HMODULE hModule; + DOS_FULL_NAME full_name; + + if ( ! DIR_SearchPath ( NULL, lpszLibFile, ".DLL", &full_name, FALSE ) ) return 0; SYSLEVEL_ReleaseWin16Lock(); - hModule = LoadLibraryExA( lpszLibFile, (HANDLE)hFile, dwFlags ); + hModule = LoadLibraryExA( full_name.short_name, (HANDLE)hFile, dwFlags ); SYSLEVEL_RestoreWin16Lock(); return (DWORD)hModule;