From 2cf740619f0dcacb64a480eb6a17911f420264ee Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 18 Sep 2005 11:15:16 +0000 Subject: [PATCH] Fixed some trace format strings (reported by Gerald Pfeifer). --- dlls/ntdll/heap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index c07367c29ef..0a7892786f2 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -243,8 +243,8 @@ static void HEAP_Dump( HEAP *heap ) else if (*(DWORD *)ptr & ARENA_FLAG_PREV_FREE) { ARENA_INUSE *pArena = (ARENA_INUSE *)ptr; - DPRINTF( "%p Used %08lx back=%08lx\n", - pArena, pArena->size & ARENA_SIZE_MASK, *((UINT_PTR *)pArena - 1) ); + DPRINTF( "%p Used %08lx back=%p\n", + pArena, pArena->size & ARENA_SIZE_MASK, *((ARENA_FREE **)pArena - 1) ); ptr += sizeof(*pArena) + (pArena->size & ARENA_SIZE_MASK); arenaSize += sizeof(ARENA_INUSE); usedSize += pArena->size & ARENA_SIZE_MASK; @@ -849,9 +849,9 @@ static BOOL HEAP_ValidateFreeArena( SUBHEAP *subheap, ARENA_FREE *pArena ) if (*((ARENA_FREE **)((char *)(pArena + 1) + (pArena->size & ARENA_SIZE_MASK)) - 1) != pArena) { - ERR("Heap %p: arena %p has wrong back ptr %08lx\n", + ERR("Heap %p: arena %p has wrong back ptr %p\n", subheap->heap, pArena, - *((UINT_PTR *)((char *)(pArena+1) + (pArena->size & ARENA_SIZE_MASK)) - 1)); + *((ARENA_FREE **)((char *)(pArena+1) + (pArena->size & ARENA_SIZE_MASK)) - 1)); return FALSE; } } -- 2.11.4.GIT