rpcrt4: Fix RpcBindingToStringBinding to not generate a UUID string if the object UUID is nil.

This commit is contained in:
Rob Shearman 2008-08-14 09:15:02 +01:00 committed by Alexandre Julliard
parent 90bd74081a
commit d2d513db74
1 changed files with 7 additions and 2 deletions

View File

@ -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);