[RPCRT4] RpcStringBindingParseA/W must fail, if a colon is missing in the string binding

This fixes a bug in the rpc winetest.
This patch will be sent upstream.
This commit is contained in:
Eric Kohl 2022-12-19 16:13:58 +01:00
parent d01de6dc8b
commit 00ccbd2f39

View file

@ -601,6 +601,8 @@ RPC_STATUS WINAPI RpcStringBindingParseA( RPC_CSTR StringBinding, RPC_CSTR *ObjU
if (next) {
if (Protseq) *Protseq = unescape_string_binding_component(data, next - data);
data = next+1;
} else {
goto fail;
}
next = string_binding_find_delimiter(data, '[');
@ -711,6 +713,8 @@ RPC_STATUS WINAPI RpcStringBindingParseW( RPC_WSTR StringBinding, RPC_WSTR *ObjU
if (next) {
if (Protseq) *Protseq = unescape_string_binding_componentW(data, next - data);
data = next+1;
} else {
goto fail;
}
next = string_binding_find_delimiterW(data, '[');