On Tue Feb 27 16:11:03 2024 +0000, Nikolay Sivov wrote:
Then it's probably safe to say that restoring original calls is enough, but we'll need to make sure that internally we use the same ones. That's a good example of side effects from switching to crt functions, that are not really that interesting to spend time investigating.
Yes, I am sorry for the trouble. If I had noticed these problems earlier, I would not have touched this file at all. My best guess, from reading what little documentation is on MSDN, is that Windows expects the stub buffers to be allocated with NdrOleAllocate.