Rob Shearman : rpcrt4: Initialise the array to be marshalled in test_conformant_array.
Alexandre Julliard
julliard at winehq.org
Fri Jun 13 05:11:21 CDT 2008
Module: wine
Branch: master
Commit: c82ffcec6052c16c34e3e40190f8a1ee346a3d0c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c82ffcec6052c16c34e3e40190f8a1ee346a3d0c
Author: Rob Shearman <robertshearman at gmail.com>
Date: Thu Jun 12 22:58:49 2008 +0100
rpcrt4: Initialise the array to be marshalled in test_conformant_array.
---
dlls/rpcrt4/tests/ndr_marshall.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
index 1ff5e3b..89b79d2 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -1315,6 +1315,7 @@ static void test_conformant_array(void)
void *ptr;
unsigned char *mem, *mem_orig;
unsigned char memsrc[20];
+ unsigned int i;
static const unsigned char fmtstr_conf_array[] =
{
@@ -1328,6 +1329,9 @@ static void test_conformant_array(void)
0x5b /* FC_END */
};
+ for (i = 0; i < sizeof(memsrc); i++)
+ memsrc[i] = i * i;
+
StubDesc = Object_StubDesc;
StubDesc.pFormatTypes = fmtstr_conf_array;
More information about the wine-cvs
mailing list