Alexandre Julliard : rpcrt4/tests: Fix a test failure on XP SP3.
Alexandre Julliard
julliard at winehq.org
Fri Oct 8 12:38:07 CDT 2010
Module: wine
Branch: master
Commit: 7bfa513bc9892e163060d2af808adadaba948f91
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7bfa513bc9892e163060d2af808adadaba948f91
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Oct 8 11:12:11 2010 +0200
rpcrt4/tests: Fix a test failure on XP SP3.
---
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 569bd20..549d09e 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -1543,6 +1543,9 @@ static void test_conformant_string(void)
my_alloc_called = 0;
StubMsg.Buffer = StubMsg.BufferStart;
mem = mem_orig = HeapAlloc(GetProcessHeap(), 0, sizeof(memsrc));
+ /* Windows apparently checks string length on the output buffer to determine its size... */
+ memset( mem, 'x', sizeof(memsrc) - 1 );
+ mem[sizeof(memsrc) - 1] = 0;
NdrPointerUnmarshall( &StubMsg, &mem, fmtstr_conf_str, 0);
ok(mem == mem_orig, "mem not alloced\n");
ok(my_alloc_called == 0, "alloc called %d\n", my_alloc_called);
More information about the wine-cvs
mailing list