[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
6feb8748d3

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.
This commit is contained in:
Joachim Henze 2020-09-01 22:10:18 +02:00
parent 9835710f7e
commit 1cc84c6db7

View File

@ -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 */