[PATCH 2/2] [NtDll]: fix wrong marking for valgrind on 64bit systems
Eric Pouech
eric.pouech at orange.fr
Sun Feb 21 08:17:46 CST 2010
A+
---
dlls/ntdll/heap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c
index b440b61..e49e77a 100644
--- a/dlls/ntdll/heap.c
+++ b/dlls/ntdll/heap.c
@@ -596,7 +596,7 @@ static void HEAP_CreateFreeBlock( SUBHEAP *subheap, void *ptr, SIZE_T size )
{
DWORD *pNext = (DWORD *)((char *)ptr + size);
*pNext |= ARENA_FLAG_PREV_FREE;
- mark_block_initialized( pNext - 1, sizeof( ARENA_FREE * ) );
+ mark_block_initialized( (ARENA_FREE **)pNext - 1, sizeof( ARENA_FREE * ) );
*((ARENA_FREE **)pNext - 1) = pFree;
}
More information about the wine-patches
mailing list