Commit 399844e9 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: RPCRT4_strdupWtoA and RPCRT4_strdupAtoW don't change the input string,…

rpcrt4: RPCRT4_strdupWtoA and RPCRT4_strdupAtoW don't change the input string, so make the input const.
parent 961455c7
......@@ -57,7 +57,7 @@ LPSTR RPCRT4_strndupA(LPCSTR src, INT slen)
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;
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment