Rob Shearman : rpcrt4: Clear a hole in the ps1 structure in test_simple_struct.

Alexandre Julliard julliard at winehq.org
Fri Jun 13 05:11:22 CDT 2008


Module: wine
Branch: master
Commit: 9196337e09a8f397cfbea5682febde4b5d0dcf6e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9196337e09a8f397cfbea5682febde4b5d0dcf6e

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Thu Jun 12 22:57:55 2008 +0100

rpcrt4: Clear a hole in the ps1 structure in test_simple_struct.

---

 dlls/rpcrt4/tests/ndr_marshall.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
index 89b79d2..26f67a7 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -896,6 +896,9 @@ static void test_simple_struct(void)
     test_pointer_marshal(fmtstr_simple_struct, &s1, 24, wiredata, 28, NULL, 0, "struct");
     }
 
+    /* zero the entire structure, including the hole */
+    memset(&ps1, 0, sizeof(&ps1));
+
     /* FC_PSTRUCT */
     ps1.l1 = 0xdeadbeef;
     l = 0xcafebabe;




More information about the wine-cvs mailing list