Commit 391466dd authored by Peter Ganten's avatar Peter Ganten Committed by Alexandre Julliard

If a module cannot be found in LoadLibraryEx32W16, call LoadLibraryEx

anyway, since it might be a builtin module.
parent ce1dc562
......@@ -298,7 +298,12 @@ 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;
/* if the file can not be found, call LoadLibraryExA anyway, since it might be
a buildin module. This case is handled in MODULE_LoadLibraryExA */
if ( ! DIR_SearchPath ( NULL, lpszLibFile, ".DLL", &full_name, FALSE ) ) {
strcpy ( full_name.short_name, lpszLibFile );
}
SYSLEVEL_ReleaseWin16Lock();
hModule = LoadLibraryExA( full_name.short_name, (HANDLE)hFile, dwFlags );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment