Commit 501d9511 authored by Guy L. Albertelli's avatar Guy L. Albertelli Committed by Alexandre Julliard

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

parent 7f9baba1
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment