rpcrt4: Fix RpcBindingToStringBinding to not generate a UUID string if the object UUID is nil.
This commit is contained in:
parent
90bd74081a
commit
d2d513db74
|
@ -816,8 +816,13 @@ RPC_STATUS WINAPI RpcBindingToStringBindingA( RPC_BINDING_HANDLE Binding, RPC_CS
|
|||
|
||||
TRACE("(%p,%p)\n", Binding, StringBinding);
|
||||
|
||||
if (UuidIsNil(&bind->ObjectUuid, &ret))
|
||||
ObjectUuid = NULL;
|
||||
else
|
||||
{
|
||||
ret = UuidToStringA(&bind->ObjectUuid, &ObjectUuid);
|
||||
if (ret != RPC_S_OK) return ret;
|
||||
}
|
||||
|
||||
ret = RpcStringBindingComposeA(ObjectUuid, (unsigned char*)bind->Protseq, (unsigned char*) bind->NetworkAddr,
|
||||
(unsigned char*) bind->Endpoint, NULL, StringBinding);
|
||||
|
|
Loading…
Reference in New Issue