19 Jul
2023
19 Jul
'23
10:57 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. -- v2: msvcrt: fix out-of-bound access in create_locinfo https://gitlab.winehq.org/wine/wine/-/merge_requests/3358