winchar_strlen and winchar_strdup can use const WCHAR
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5057 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a8f8c50538
commit
df24dbe687
2 changed files with 4 additions and 4 deletions
|
@ -82,7 +82,7 @@ WCHAR *winchar_strncpy(WCHAR *ws1, const WCHAR *ws2, size_t n)
|
|||
return ret;
|
||||
}
|
||||
|
||||
size_t winchar_strlen(WCHAR *ws)
|
||||
size_t winchar_strlen(const WCHAR *ws)
|
||||
{
|
||||
size_t len = 0;
|
||||
|
||||
|
@ -94,7 +94,7 @@ size_t winchar_strlen(WCHAR *ws)
|
|||
return len;
|
||||
}
|
||||
|
||||
WCHAR *winchar_strdup(WCHAR *ws)
|
||||
WCHAR *winchar_strdup(const WCHAR *ws)
|
||||
{
|
||||
WCHAR *dup = new WCHAR[winchar_strlen(ws) + 1];
|
||||
winchar_strcpy(dup, ws);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue