[5/5] widl: consider ptrs to user-marshalled types as pointers-to-nonpointers (try 2)

Michael Karcher wine at mkarcher.dialup.fu-berlin.de
Sun Jan 11 08:04:33 CST 2009


typdef [wire_marshal(wirefoo)] foo * pfoo;
made widl incorrectly set the RPC_FC_P_DEREF bit for pfoo. But this
declares a user-marshalled pointer, so the RPC runtime must not dereference
it before passing it on to the UserFoo functions.

try 2: move is_last_ptr and is_string_type instead of is_user_type.
---
 tools/widl/header.h  |   11 -----------
 tools/widl/typegen.h |   12 ++++++++++++
 tools/widl/typelib.c |    1 +
 3 files changed, 13 insertions(+), 11 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 904a23969cef300649f3823645e95ad4b91a8e44.diff
Type: text/x-patch
Size: 2192 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090111/18d8fd8f/attachment.bin 


More information about the wine-patches mailing list