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;
|
||||
}
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue