March 27, 2026
3:05 p.m.
Alfred Agrell (@Alcaro) commented about dlls/kernelbase/loader.c:
+ LCIDToLocaleName( GetUserDefaultLCID(), mui_locale, LOCALE_NAME_MAX_LENGTH, 0 ); + + recursion_flag = FALSE; + + locale_found = TRUE; + + } + + /* Locate the position of the final backslash in the retrieved executable file. */ + + for (i = 0; i < MAX_PATH; i++) { + + if (module_name[i] == 0) break; + + if (module_name[i] == '\\') j = i; + } Should probably replace that with wcsrchr.
(Yes, libc function names are gibberish.) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10365#note_134082