https://git.reactos.org/?p=reactos.git;a=commitdiff;h=87845a1cc25d07abcde1d…
commit 87845a1cc25d07abcde1d25e62cfea78aeadd571
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Sat Aug 17 02:36:17 2019 +0300
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat Aug 17 01:47:34 2019 +0200
[FREELDR] Add missing VideoSetTextCursorPosition handler for Xbox
This fixes null pointer call bug, which was revealed in 85d44fc. Spotted by Mark
Jansen. CORE-16216
Co-authored-by: Mark Jansen <mark.jansen(a)reactos.org>
---
boot/freeldr/freeldr/arch/i386/machxbox.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/boot/freeldr/freeldr/arch/i386/machxbox.c
b/boot/freeldr/freeldr/arch/i386/machxbox.c
index b3cd4f5616e..3fb951de1a6 100644
--- a/boot/freeldr/freeldr/arch/i386/machxbox.c
+++ b/boot/freeldr/freeldr/arch/i386/machxbox.c
@@ -272,6 +272,7 @@ XboxMachInit(const char *CmdLine)
MachVtbl.VideoGetDisplaySize = XboxVideoGetDisplaySize;
MachVtbl.VideoGetBufferSize = XboxVideoGetBufferSize;
MachVtbl.VideoGetFontsFromFirmware = XboxVideoGetFontsFromFirmware;
+ MachVtbl.VideoSetTextCursorPosition = XboxVideoSetTextCursorPosition;
MachVtbl.VideoHideShowTextCursor = XboxVideoHideShowTextCursor;
MachVtbl.VideoPutChar = XboxVideoPutChar;
MachVtbl.VideoCopyOffScreenBufferToVRAM = XboxVideoCopyOffScreenBufferToVRAM;