rpcrt4: Handle exit path where bind not allocated yet.
This commit is contained in:
parent
7a5e3d3c04
commit
bd38e2b0ed
|
@ -725,8 +725,8 @@ RPC_STATUS WINAPI RpcBindingFromStringBindingA( RPC_CSTR StringBinding, RPC_BIND
|
||||||
|
|
||||||
if (ret == RPC_S_OK)
|
if (ret == RPC_S_OK)
|
||||||
ret = RPCRT4_CreateBindingA(&bind, FALSE, (char*)Protseq);
|
ret = RPCRT4_CreateBindingA(&bind, FALSE, (char*)Protseq);
|
||||||
if (ret == RPC_S_OK)
|
if (ret != RPC_S_OK) return ret;
|
||||||
ret = RPCRT4_SetBindingObject(bind, &Uuid);
|
ret = RPCRT4_SetBindingObject(bind, &Uuid);
|
||||||
if (ret == RPC_S_OK)
|
if (ret == RPC_S_OK)
|
||||||
ret = RPCRT4_CompleteBindingA(bind, (char*)NetworkAddr, (char*)Endpoint, (char*)Options);
|
ret = RPCRT4_CompleteBindingA(bind, (char*)NetworkAddr, (char*)Endpoint, (char*)Options);
|
||||||
|
|
||||||
|
@ -764,8 +764,8 @@ RPC_STATUS WINAPI RpcBindingFromStringBindingW( RPC_WSTR StringBinding, RPC_BIND
|
||||||
|
|
||||||
if (ret == RPC_S_OK)
|
if (ret == RPC_S_OK)
|
||||||
ret = RPCRT4_CreateBindingW(&bind, FALSE, Protseq);
|
ret = RPCRT4_CreateBindingW(&bind, FALSE, Protseq);
|
||||||
if (ret == RPC_S_OK)
|
if (ret != RPC_S_OK) return ret;
|
||||||
ret = RPCRT4_SetBindingObject(bind, &Uuid);
|
ret = RPCRT4_SetBindingObject(bind, &Uuid);
|
||||||
if (ret == RPC_S_OK)
|
if (ret == RPC_S_OK)
|
||||||
ret = RPCRT4_CompleteBindingW(bind, NetworkAddr, Endpoint, Options);
|
ret = RPCRT4_CompleteBindingW(bind, NetworkAddr, Endpoint, Options);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue