Rob Shearman : rpcrt4: Fix typo in unescape_string_binding_componentW.
Module: wine Branch: master Commit: f2e47cc2a20b6976e4d6345ab78407bde0d8c580 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f2e47cc2a20b6976e4d6345ab7... Author: Rob Shearman <robertshearman(a)gmail.com> Date: Fri Sep 5 22:08:42 2008 +0100 rpcrt4: Fix typo in unescape_string_binding_componentW. string_binding is of type "const WCHAR *" so we shouldn't be calling strlen on it, we should be calling strlenW on it. --- dlls/rpcrt4/rpc_binding.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c index 6a17a8c..db46b8c 100644 --- a/dlls/rpcrt4/rpc_binding.c +++ b/dlls/rpcrt4/rpc_binding.c @@ -435,7 +435,7 @@ static RPC_WSTR unescape_string_binding_componentW( { RPC_WSTR component, p; - if (len == -1) len = strlen((const char *)string_binding); + if (len == -1) len = strlenW(string_binding); component = HeapAlloc(GetProcessHeap(), 0, (len + 1) * sizeof(*component)); if (!component) return NULL;
participants (1)
-
Alexandre Julliard