rpcrt4: Initialise memory passed into RPCs in the server test.

Robert Shearman rob at codeweavers.com
Wed Dec 19 08:53:30 CST 2007


aligns contains padding, but the memory is marshalled in one block so 
call memset to avoid Valgrind warnings. padded and padded2 are 
marshalled as complex types so this is not required here.

Initialise the dummy member of test_list_t to zero for the TL_NULL case. 
Change
the type to the smallest available to not waste buffer space.
---
  dlls/rpcrt4/tests/server.c   |    8 +++++++-
  dlls/rpcrt4/tests/server.idl |    2 +-
  2 files changed, 8 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 61f703e59d4b8f76a32b7543ae2f7b5fb2f62133.diff
Type: text/x-patch
Size: 1310 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071219/c09d2f5e/attachment.bin 


More information about the wine-patches mailing list