https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1cc84c6db70b57a54e5835...
commit 1cc84c6db70b57a54e5835103939163ccd78e2a3 Author: Joachim Henze Joachim.Henze@reactos.org AuthorDate: Tue Sep 1 22:10:18 2020 +0200 Commit: Joachim Henze Joachim.Henze@reactos.org CommitDate: Tue Sep 1 22:10:18 2020 +0200
[RPCRT4] Check hBinding != 0 CORE-16936
To prevent logspam that was introduced when syncing to Wine Staging 4.18 in 0.4.14-dev-422-g 6feb8748d300347f848eee8436845a1f0c67d3aa
Thanks for anyone helping: Doug Lyons, Fabian Maurer (Wine), Zebediah Figura (Wine)
I intend to port it back into 0.4.14RC so that none of our releases will be affected. --- dll/win32/rpcrt4/ndr_stubless.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dll/win32/rpcrt4/ndr_stubless.c b/dll/win32/rpcrt4/ndr_stubless.c index cc52ee27e85..47d03b13564 100644 --- a/dll/win32/rpcrt4/ndr_stubless.c +++ b/dll/win32/rpcrt4/ndr_stubless.c @@ -402,7 +402,11 @@ static void client_free_handle( pArg = ARG_FROM_OFFSET(pStubMsg->StackTop, pDesc->offset); memcpy(&pObject, pArg, pDesc->flag_and_size & 0xf); pGenPair = &pStubMsg->StubDesc->aGenericBindingRoutinePairs[pDesc->binding_routine_pair_index]; +#ifdef __REACTOS__ + if (hBinding) pGenPair->pfnUnbind(pObject, hBinding); +#else pGenPair->pfnUnbind(pObject, hBinding); +#endif break; } case FC_BIND_CONTEXT: /* explicit context */