From 5d8398fc61fbb62d0c35ca221fe1f2c06afbaaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Wed, 9 Mar 2016 00:07:24 +0000 Subject: [PATCH] [NTVDM]: Fix space padding calculation in the text-mode hex dumper. svn path=/trunk/; revision=70974 --- reactos/subsystems/mvdm/ntvdm/emulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/mvdm/ntvdm/emulator.c b/reactos/subsystems/mvdm/ntvdm/emulator.c index 5239ea59b8f..b90d8e83133 100644 --- a/reactos/subsystems/mvdm/ntvdm/emulator.c +++ b/reactos/subsystems/mvdm/ntvdm/emulator.c @@ -345,8 +345,8 @@ DumpMemoryTxt(HANDLE hFile) } /* ... align with spaces if needed... */ - RtlFillMemory(Line, 0x0F + 4 - i, ' '); - Line += 0x0F + 4 - i; + RtlFillMemory(Line, (0x0F + 2 - i) * 3 + 2, ' '); + Line += (0x0F + 2 - i) * 3 + 2; /* ... then in character form. */ i = 0;