On 8/4/21 6:04 pm, Alexandre Julliard wrote:
You could probably reuse the existing helper. This would need some tests about the behavior on short buffers.
Why? UNICODE_STRINGs don't need to be null-terminated.
- /* kernel32 doesn't store information about primary languages */
LOCALE_SPARENT seems pretty close.
Yes, but that's still indexed by lang-sublang pair. You'd have to loop through every language, which seems overkill just to avoid a bit of code duplication. And you run into the problem where LANG_CROATIAN == LANG_SERBIAN, but they still have separate strings.