Whitespace cleanup.
This commit is contained in:
parent
641f7fa3de
commit
c029f8c006
|
@ -304,8 +304,7 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding)
|
|||
TRACE("connection failed, error=%lx\n", err);
|
||||
HeapFree(GetProcessHeap(), 0, pname);
|
||||
return err;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
err = GetLastError();
|
||||
TRACE("connection failed, error=%lx\n", err);
|
||||
HeapFree(GetProcessHeap(), 0, pname);
|
||||
|
@ -345,8 +344,7 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding)
|
|||
memset(&Binding->ovl, 0, sizeof(Binding->ovl));
|
||||
Binding->ovl.hEvent = CreateEventA(NULL, TRUE, FALSE, NULL);
|
||||
Binding->conn = conn;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
ERR("protseq %s not supported\n", Binding->Protseq);
|
||||
return RPC_S_PROTSEQ_NOT_SUPPORTED;
|
||||
}
|
||||
|
@ -440,9 +438,9 @@ RPC_STATUS WINAPI RpcStringBindingComposeA( LPSTR ObjUuid, LPSTR Protseq,
|
|||
data += RPCRT4_strcopyA(data, Protseq);
|
||||
*data++ = ':';
|
||||
}
|
||||
if (NetworkAddr && *NetworkAddr) {
|
||||
if (NetworkAddr && *NetworkAddr)
|
||||
data += RPCRT4_strcopyA(data, NetworkAddr);
|
||||
}
|
||||
|
||||
if ((Endpoint && *Endpoint) ||
|
||||
(Options && *Options)) {
|
||||
*data++ = '[';
|
||||
|
@ -569,22 +567,20 @@ RPC_STATUS WINAPI RpcStringBindingParseA( LPSTR StringBinding, LPSTR *ObjUuid,
|
|||
/* not an option, must be an endpoint */
|
||||
if (*Endpoint) goto fail;
|
||||
*Endpoint = opt;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (strncmp(opt, ep_opt, strlen(ep_opt)) == 0) {
|
||||
/* endpoint option */
|
||||
if (*Endpoint) goto fail;
|
||||
*Endpoint = RPCRT4_strdupA(next+1);
|
||||
HeapFree(GetProcessHeap(), 0, opt);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
/* network option */
|
||||
if (*Options) {
|
||||
/* FIXME: this is kind of inefficient */
|
||||
*Options = RPCRT4_strconcatA(*Options, opt);
|
||||
HeapFree(GetProcessHeap(), 0, opt);
|
||||
}
|
||||
else *Options = opt;
|
||||
} else
|
||||
*Options = opt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -592,7 +588,9 @@ RPC_STATUS WINAPI RpcStringBindingParseA( LPSTR StringBinding, LPSTR *ObjUuid,
|
|||
data = close+1;
|
||||
if (*data) goto fail;
|
||||
}
|
||||
else if (NetworkAddr) *NetworkAddr = RPCRT4_strdupA(data);
|
||||
else if (NetworkAddr)
|
||||
*NetworkAddr = RPCRT4_strdupA(data);
|
||||
|
||||
return RPC_S_OK;
|
||||
|
||||
fail:
|
||||
|
@ -660,32 +658,31 @@ RPC_STATUS WINAPI RpcStringBindingParseW( LPWSTR StringBinding, LPWSTR *ObjUuid,
|
|||
/* not an option, must be an endpoint */
|
||||
if (*Endpoint) goto fail;
|
||||
*Endpoint = opt;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (strncmpW(opt, ep_opt, strlenW(ep_opt)) == 0) {
|
||||
/* endpoint option */
|
||||
if (*Endpoint) goto fail;
|
||||
*Endpoint = RPCRT4_strdupW(next+1);
|
||||
HeapFree(GetProcessHeap(), 0, opt);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
/* network option */
|
||||
if (*Options) {
|
||||
/* FIXME: this is kind of inefficient */
|
||||
*Options = RPCRT4_strconcatW(*Options, opt);
|
||||
HeapFree(GetProcessHeap(), 0, opt);
|
||||
}
|
||||
else *Options = opt;
|
||||
} else
|
||||
*Options = opt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data = close+1;
|
||||
if (*data) goto fail;
|
||||
}
|
||||
else if (NetworkAddr) *NetworkAddr = RPCRT4_strdupW(data);
|
||||
} else if (NetworkAddr)
|
||||
*NetworkAddr = RPCRT4_strdupW(data);
|
||||
|
||||
return RPC_S_OK;
|
||||
|
||||
fail:
|
||||
if (ObjUuid) RpcStringFreeW(ObjUuid);
|
||||
if (Protseq) RpcStringFreeW(Protseq);
|
||||
|
@ -779,8 +776,10 @@ RPC_STATUS WINAPI RpcBindingFromStringBindingA( LPSTR StringBinding, RPC_BINDING
|
|||
RpcStringFreeA(&Protseq);
|
||||
RpcStringFreeA(&ObjectUuid);
|
||||
|
||||
if (ret == RPC_S_OK) *Binding = (RPC_BINDING_HANDLE)bind;
|
||||
else RPCRT4_DestroyBinding(bind);
|
||||
if (ret == RPC_S_OK)
|
||||
*Binding = (RPC_BINDING_HANDLE)bind;
|
||||
else
|
||||
RPCRT4_DestroyBinding(bind);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -816,8 +815,10 @@ RPC_STATUS WINAPI RpcBindingFromStringBindingW( LPWSTR StringBinding, RPC_BINDIN
|
|||
RpcStringFreeW(&Protseq);
|
||||
RpcStringFreeW(&ObjectUuid);
|
||||
|
||||
if (ret == RPC_S_OK) *Binding = (RPC_BINDING_HANDLE)bind;
|
||||
else RPCRT4_DestroyBinding(bind);
|
||||
if (ret == RPC_S_OK)
|
||||
*Binding = (RPC_BINDING_HANDLE)bind;
|
||||
else
|
||||
RPCRT4_DestroyBinding(bind);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue