mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
Cygwin: wchar.h: Fix comment
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
2ec96890db
commit
c1f8a7b502
@ -106,7 +106,7 @@ static inline size_t
|
||||
sys_mbstouni_alloc (PUNICODE_STRING dst, int type, const char *src,
|
||||
size_t nms = (size_t) -1)
|
||||
{
|
||||
/* sys_mbstowcs returns length *including* trailing \0 */
|
||||
/* sys_mbstowcs_alloc returns length *including* trailing \0 */
|
||||
size_t len = sys_mbstowcs_alloc (&dst->Buffer, type, src, nms);
|
||||
dst->MaximumLength = len * sizeof (WCHAR);
|
||||
dst->Length = dst->MaximumLength - sizeof (WCHAR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user