Rob Shearman : rpcrt4: Fix typo in unescape_string_binding_componentW.

Alexandre Julliard julliard at winehq.org
Mon Sep 8 07:41:13 CDT 2008


Module: wine
Branch: master
Commit: f2e47cc2a20b6976e4d6345ab78407bde0d8c580
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f2e47cc2a20b6976e4d6345ab78407bde0d8c580

Author: Rob Shearman <robertshearman at 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;




More information about the wine-cvs mailing list