rpcrt4: RPCRT4_strdupWtoA and RPCRT4_strdupAtoW don't change the input string, so make the input const.
This commit is contained in:
parent
961455c7f0
commit
399844e9f6
|
@ -57,7 +57,7 @@ LPSTR RPCRT4_strndupA(LPCSTR src, INT slen)
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
LPSTR RPCRT4_strdupWtoA(LPWSTR src)
|
LPSTR RPCRT4_strdupWtoA(LPCWSTR src)
|
||||||
{
|
{
|
||||||
DWORD len;
|
DWORD len;
|
||||||
LPSTR s;
|
LPSTR s;
|
||||||
|
@ -68,7 +68,7 @@ LPSTR RPCRT4_strdupWtoA(LPWSTR src)
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
LPWSTR RPCRT4_strdupAtoW(LPSTR src)
|
LPWSTR RPCRT4_strdupAtoW(LPCSTR src)
|
||||||
{
|
{
|
||||||
DWORD len;
|
DWORD len;
|
||||||
LPWSTR s;
|
LPWSTR s;
|
||||||
|
|
|
@ -105,8 +105,8 @@ typedef struct _RpcBinding
|
||||||
|
|
||||||
LPSTR RPCRT4_strndupA(LPCSTR src, INT len);
|
LPSTR RPCRT4_strndupA(LPCSTR src, INT len);
|
||||||
LPWSTR RPCRT4_strndupW(LPCWSTR src, INT len);
|
LPWSTR RPCRT4_strndupW(LPCWSTR src, INT len);
|
||||||
LPSTR RPCRT4_strdupWtoA(LPWSTR src);
|
LPSTR RPCRT4_strdupWtoA(LPCWSTR src);
|
||||||
LPWSTR RPCRT4_strdupAtoW(LPSTR src);
|
LPWSTR RPCRT4_strdupAtoW(LPCSTR src);
|
||||||
void RPCRT4_strfree(LPSTR src);
|
void RPCRT4_strfree(LPSTR src);
|
||||||
|
|
||||||
#define RPCRT4_strdupA(x) RPCRT4_strndupA((x),-1)
|
#define RPCRT4_strdupA(x) RPCRT4_strndupA((x),-1)
|
||||||
|
|
Loading…
Reference in New Issue