ntdll: Fix valgrind heap realloc notifications. (try 2)

Thomas Faller tfaller1 at gmx.de
Wed Dec 16 15:00:58 CST 2015


Valgrind can't handle a realloc, if the new size is zero.
Fix for bug https://bugs.winehq.org/show_bug.cgi?id=37646

try2:

Set new size to 1 instead of freeing the block.


Signed-off-by: Thomas Faller <tfaller1 at gmx.de>
---
  dlls/ntdll/heap.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)




-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Fix-valgrind-heap-realloc-notifications.txt
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151216/384169b2/attachment.bin>


More information about the wine-patches mailing list