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

This commit is contained in:
Rob Shearman 2007-01-25 10:24:00 +00:00 committed by Alexandre Julliard
parent 961455c7f0
commit 399844e9f6
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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)