[HAL] Return correct bus handler in HaliFindBusAddressTranslation

This fixes the bug when VidInitialize asks for different translated addresses
and VgaIsPresent always returns FALSE either because the machine does not have
VGA controller at all (e.g. 86Duino Zero), or it does have video hardware
that is not compatible with VGA standard (e.g. Original Xbox).

The problem investigated by Stanislav Motylkov. Suggested fix by Thomas Faber.

CORE-14625 CORE-16216 CORE-16222

Co-authored-by: Thomas Faber <thomas.faber@reactos.org>
This commit is contained in:
Stanislav Motylkov 2019-09-01 13:04:15 +03:00 committed by Hermès BÉLUSCA - MAÏTO
parent 99fe069ce6
commit 17bb6d10eb

View file

@ -1319,7 +1319,7 @@ HaliFindBusAddressTranslation(IN PHYSICAL_ADDRESS BusAddress,
}
/* If we made it, we're done */
*Context = (ULONG_PTR)Handler;
*Context = (ULONG_PTR)&BusHandler->Handler;
return TRUE;
}