Module: wine Branch: master Commit: 10642e76dbcc223cd691b2e6cbd1d8a48dfd499a URL: http://source.winehq.org/git/wine.git/?a=commit;h=10642e76dbcc223cd691b2e6cb...
Author: Eric Pouech eric.pouech@orange.fr Date: Sun Feb 21 15:17:46 2010 +0100
ntdll: Fix wrong marking for valgrind on 64bit systems.
---
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; }