mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:30:50 +00:00
kernel32: Set ERROR_DLL_NOT_FOUND as error code in load_library for Win 9x compatibility.
Newer operating systems return ERROR_MOD_NOT_FOUND. Signed-off-by: Michael Müller <michael@fds-team.de> Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
11f6df13eb
commit
bd17022c90
|
@ -948,7 +948,10 @@ static HMODULE load_library( const UNICODE_STRING *libname, DWORD flags )
|
|||
if (nts != STATUS_SUCCESS)
|
||||
{
|
||||
hModule = 0;
|
||||
SetLastError( RtlNtStatusToDosError( nts ) );
|
||||
if (nts == STATUS_DLL_NOT_FOUND && (GetVersion() & 0x80000000))
|
||||
SetLastError( ERROR_DLL_NOT_FOUND );
|
||||
else
|
||||
SetLastError( RtlNtStatusToDosError( nts ) );
|
||||
}
|
||||
done:
|
||||
HeapFree( GetProcessHeap(), 0, load_path );
|
||||
|
|
Loading…
Reference in a new issue