https://git.reactos.org/?p=reactos.git;a=commitdiff;h=17bb6d10eb6ec671aea08…
commit 17bb6d10eb6ec671aea08885ef80bfcd7c9a91d5
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Sun Sep 1 13:04:15 2019 +0300
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Sep 1 16:37:56 2019 +0200
[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(a)reactos.org>
---
hal/halx86/legacy/bussupp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hal/halx86/legacy/bussupp.c b/hal/halx86/legacy/bussupp.c
index 7fff59f235c..b8a7cb888d9 100644
--- a/hal/halx86/legacy/bussupp.c
+++ b/hal/halx86/legacy/bussupp.c
@@ -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;
}