Rob Shearman : rpcrt4: RPCRT4_strdupWtoA and RPCRT4_strdupAtoW don' t change the input string, so make the input const.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 25 06:12:21 CST 2007


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Jan 25 10:24:00 2007 +0000

rpcrt4: RPCRT4_strdupWtoA and RPCRT4_strdupAtoW don't change the input string, so make the input const.

---

 dlls/rpcrt4/rpc_binding.c |    4 ++--
 dlls/rpcrt4/rpc_binding.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c
index ffa9659..1d10f3d 100644
--- a/dlls/rpcrt4/rpc_binding.c
+++ b/dlls/rpcrt4/rpc_binding.c
@@ -57,7 +57,7 @@ LPSTR RPCRT4_strndupA(LPCSTR src, INT sl
   return s;
 }
 
-LPSTR RPCRT4_strdupWtoA(LPWSTR src)
+LPSTR RPCRT4_strdupWtoA(LPCWSTR src)
 {
   DWORD len;
   LPSTR s;
@@ -68,7 +68,7 @@ LPSTR RPCRT4_strdupWtoA(LPWSTR src)
   return s;
 }
 
-LPWSTR RPCRT4_strdupAtoW(LPSTR src)
+LPWSTR RPCRT4_strdupAtoW(LPCSTR src)
 {
   DWORD len;
   LPWSTR s;
diff --git a/dlls/rpcrt4/rpc_binding.h b/dlls/rpcrt4/rpc_binding.h
index 76100d6..f1ebdbd 100644
--- a/dlls/rpcrt4/rpc_binding.h
+++ b/dlls/rpcrt4/rpc_binding.h
@@ -105,8 +105,8 @@ typedef struct _RpcBinding
 
 LPSTR RPCRT4_strndupA(LPCSTR src, INT len);
 LPWSTR RPCRT4_strndupW(LPCWSTR src, INT len);
-LPSTR RPCRT4_strdupWtoA(LPWSTR src);
-LPWSTR RPCRT4_strdupAtoW(LPSTR src);
+LPSTR RPCRT4_strdupWtoA(LPCWSTR src);
+LPWSTR RPCRT4_strdupAtoW(LPCSTR src);
 void RPCRT4_strfree(LPSTR src);
 
 #define RPCRT4_strdupA(x) RPCRT4_strndupA((x),-1)




More information about the wine-cvs mailing list