Dan Kegel : ntdll: Fix large block realloc annotation.

Alexandre Julliard julliard at winehq.org
Tue Feb 2 10:45:28 CST 2010


Module: wine
Branch: master
Commit: 20430f6edefe0f299fe27303ec9e153873023ee0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=20430f6edefe0f299fe27303ec9e153873023ee0

Author: Dan Kegel <dank at kegel.com>
Date:   Mon Feb  1 11:25:35 2010 -0800

ntdll: Fix large block realloc annotation.

---

 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 4c73184..b440b61 100644
--- a/dlls/ntdll/heap.c
+++ b/dlls/ntdll/heap.c
@@ -767,6 +767,7 @@ static void *realloc_large_block( HEAP *heap, DWORD flags, void *ptr, SIZE_T siz
     }
     memcpy( new_ptr, ptr, arena->data_size );
     free_large_block( heap, flags, ptr );
+    notify_free( ptr );
     return new_ptr;
 }
 
@@ -1811,7 +1812,6 @@ PVOID WINAPI RtlReAllocateHeap( HANDLE heap, ULONG flags, PVOID ptr, SIZE_T size
     if (!subheap)
     {
         if (!(ret = realloc_large_block( heapPtr, flags, ptr, size ))) goto oom;
-        notify_free( ptr );
         goto done;
     }
 




More information about the wine-cvs mailing list