fix typos in compatibility function
This commit is contained in:
parent
391eb656fe
commit
d7fa22c88f
|
@ -9,8 +9,8 @@
|
||||||
wchar_t * wcsdup(const wchar_t *s)
|
wchar_t * wcsdup(const wchar_t *s)
|
||||||
{
|
{
|
||||||
size_t n = wcslen(s) + 1;
|
size_t n = wcslen(s) + 1;
|
||||||
wchar_t r = malloc(n * sizeof(wchar_t));
|
wchar_t *r = malloc(n * sizeof(wchar_t));
|
||||||
return r ? return wmemcpy(r, s, n) : 0;
|
return r ? wmemcpy(r, s, n) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue