[NTVDM]: Improve the dumper a bit.

svn path=/trunk/; revision=63343
This commit is contained in:
Hermès Bélusca-Maïto 2014-05-17 23:55:14 +00:00
parent ad69b4a3c0
commit 2736ab0dca

View file

@ -400,8 +400,7 @@ VOID DumpMemory(VOID)
i = 0;
while (i++ <= 0x0F && (MAX_ADDRESS - (ULONG_PTR)PHYS_TO_REAL(Ptr2) > 0))
{
Line += snprintf(Line, LINE_SIZE + LineBuffer - Line, "%c",
(*Ptr2 >= 0x20 && *Ptr2 <= 0x7E) || (*Ptr2 >= 0x80 && *Ptr2 < 0xFF) ? *Ptr2 : '.');
*Line++ = ((*Ptr2 >= 0x20 && *Ptr2 <= 0x7E) || (*Ptr2 >= 0x80 && *Ptr2 < 0xFF) ? *Ptr2 : '.');
++Ptr2;
}