eric pouech (@epo) commented about dlls/kernelbase/loader.c:
ULONG len = 0; WIN16_SUBSYSTEM_TIB *win16_tib; UNICODE_STRING name; - NTSTATUS status; + NTSTATUS status = 0;
if (!module && ((win16_tib = NtCurrentTeb()->Tib.SubSystemTib)) && win16_tib->exe_name) { len = min( size, win16_tib->exe_name->Length / sizeof(WCHAR) ); memcpy( filename, win16_tib->exe_name->Buffer, len * sizeof(WCHAR) ); - if (len < size) filename[len] = 0;
unfortunately, we don't have support for 16bit apps in the non regression test suite so it's not clear if this change is correct or not; this has to be manually tested with an old compiler and run in Windows so unless you're ready to go that way, I'd leave that code path unchanged -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10291#note_133844