Skip to content

Commit 17bb6d1

Browse files
binarymasterThFabba
authored andcommitted
[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 <[email protected]>
1 parent 99fe069 commit 17bb6d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/halx86/legacy/bussupp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ HaliFindBusAddressTranslation(IN PHYSICAL_ADDRESS BusAddress,
13191319
}
13201320

13211321
/* If we made it, we're done */
1322-
*Context = (ULONG_PTR)Handler;
1322+
*Context = (ULONG_PTR)&BusHandler->Handler;
13231323
return TRUE;
13241324
}
13251325

0 commit comments

Comments
 (0)