[BOOTVID] Fix screen buffer copying code for PC-98 (#2936)

This commit is contained in:
Dmitry Borisov 2020-07-28 00:19:34 +06:00 committed by Stanislav Motylkov
parent c87be643f8
commit e318801c1c
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -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))
{