Fix memory dump where length is not a multiple of 4.

This commit is contained in:
Guy L. Albertelli 2002-05-14 03:49:26 +00:00 committed by Alexandre Julliard
parent 7f9baba139
commit 501d951123
1 changed files with 5 additions and 1 deletions

View File

@ -1959,7 +1959,11 @@ void SPY_DumpMem (LPSTR header, UINT *q, INT len)
header, i, *q, *(q+1), *(q+2), *(q+3));
q += 4;
}
switch (len - i) {
switch ((len - i + 3) & (~3)) {
case 16:
TRACE("%s [%04x] %08x %08x %08x %08x\n",
header, i, *q, *(q+1), *(q+2), *(q+3));
break;
case 12:
TRACE("%s [%04x] %08x %08x %08x\n",
header, i, *q, *(q+1), *(q+2));