From e318801c1c052035777aaef49b4071d37a0a7b89 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Tue, 28 Jul 2020 00:19:34 +0600 Subject: [PATCH] [BOOTVID] Fix screen buffer copying code for PC-98 (#2936) --- drivers/base/bootvid/i386/pc98/bootvid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/base/bootvid/i386/pc98/bootvid.c b/drivers/base/bootvid/i386/pc98/bootvid.c index 0563da8a5e0..c938910e957 100644 --- a/drivers/base/bootvid/i386/pc98/bootvid.c +++ b/drivers/base/bootvid/i386/pc98/bootvid.c @@ -421,7 +421,7 @@ VidScreenToBufferBlt( ULONG X, Y; PUCHAR OutputBuffer; USHORT Px; - PUSHORT PixelsPosition = (PUSHORT)(FrameBuffer + FB_OFFSET(Left, Top)); + PUSHORT PixelsPosition; /* Clear the destination buffer */ RtlZeroMemory(Buffer, Delta * Height); @@ -429,6 +429,7 @@ VidScreenToBufferBlt( for (Y = 0; Y < Height; Y++) { OutputBuffer = Buffer + Y * Delta; + PixelsPosition = (PUSHORT)(FrameBuffer + FB_OFFSET(Left, Top + Y)); for (X = 0; X < Width; X += sizeof(USHORT)) {