Re: Behavior of realloc vs. HeapReAlloc

2009-08-24 Thread Michael Stefaniuc
Hello! Paul Chitescu wrote: > While trying to debug a crash in msi.dll I noticed that the local > msi_realloc() is implemented as a (too) thin wrapper around HeapReAlloc() and > differs from the expected behavior of realloc() when the old pointer or the > new size are zero. > > The runtime rea

Behavior of realloc vs. HeapReAlloc

2009-08-23 Thread Paul Chitescu
Hi! While trying to debug a crash in msi.dll I noticed that the local msi_realloc() is implemented as a (too) thin wrapper around HeapReAlloc() and differs from the expected behavior of realloc() when the old pointer or the new size are zero. The runtime realloc() works like free() if the new