20 Jul
2023
20 Jul
'23
2:22 p.m.
`wcsncpy` and `GetLocaleInfoEx` take length in number of characters, but `size` and `ret` counts number of bytes. Previous commit changed a call to `GetLocaleInfoW` which counts lenght in `TCHAR`s (aka bytes), to the current `GetLocaleInfoEx`, which is probably the source of this confusion. -- v4: msvcrt: Fix out-of-bound access in create_locinfo. https://gitlab.winehq.org/wine/wine/-/merge_requests/3358