mirror of
https://github.com/reactos/reactos.git
synced 2026-05-27 19:33:55 +08:00
[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:
@@ -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, '[');
|
||||
|
||||
Reference in New Issue
Block a user