widl: Output correct code for freeing of conformant-sized and non-conformant strings.

Rob Shearman robertshearman at gmail.com
Fri Mar 20 11:15:46 CDT 2009

_StubMsg.pfnFree should be used instead of NdrPointerFree for
conformant-sized strings since the buffer will have been allocated
using NdrAllocate.

Non-conformant strings do not need any freeing since they use a buffer
that is allocated on the stack.
 tools/widl/typegen.c |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cafb6e40d0cd30d119ed6d129b4d7b322a40fa68.diff
Type: text/x-patch
Size: 3271 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090320/63b64ca9/attachment.bin>

More information about the wine-patches mailing list