rpcrt4: RPCRT4_strdupWtoA and RPCRT4_strdupAtoW don't change the
input string, so make the input const.
Robert Shearman
rob at codeweavers.com
Thu Jan 25 04:24:00 CST 2007
---
dlls/rpcrt4/rpc_binding.c | 4 ++--
dlls/rpcrt4/rpc_binding.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
-------------- next part --------------
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-patches
mailing list