On Tue Feb 27 13:32:48 2024 +0000, Nikolay Sivov wrote:
NdrOle*() are going through allocation spy thing, but internally are probably same HeapAlloc(). Maybe they reallocate, or something else. How do you know it's not calling HeapSize() ?
The marshalling and unmarshalling functions crash instead of returning an error code if the buffer is too small. Furthermore, the pointers to the buffer do not move and `HeapSize` returns the same value before and after. I can't be perfectly certain that Windows isn't calling `HeapSize` internally, but I haven't found any evidence that it is.