Module: wine Branch: master Commit: c5e23886b2290304c78101d7927898700974b84a URL: https://gitlab.winehq.org/wine/wine/-/commit/c5e23886b2290304c78101d79278987...
Author: Eric Pouech eric.pouech@gmail.com Date: Fri Nov 4 15:42:41 2022 +0100
rpcrt4: Fix unexpected exception in ndr_marshal tests.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52909 Signed-off-by: Eric Pouech eric.pouech@gmail.com
---
dlls/rpcrt4/tests/ndr_marshall.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c index 5d72f5efc61..bae9b12f7ab 100644 --- a/dlls/rpcrt4/tests/ndr_marshall.c +++ b/dlls/rpcrt4/tests/ndr_marshall.c @@ -154,6 +154,7 @@ static void test_ndr_simple_type(void)
StubMsg.BufferLength = 16; StubMsg.RpcMsg->Buffer = StubMsg.BufferStart = StubMsg.Buffer = HeapAlloc(GetProcessHeap(), 0, StubMsg.BufferLength); + StubMsg.BufferEnd = StubMsg.Buffer + StubMsg.BufferLength; l = 0xcafebabe; NdrSimpleTypeMarshall(&StubMsg, (unsigned char*)&l, FC_LONG); ok(StubMsg.Buffer == StubMsg.BufferStart + 4, "%p %p\n", StubMsg.Buffer, StubMsg.BufferStart);