March 26, 2026
3:43 a.m.
eric pouech (@epo) commented about dlls/kernelbase/loader.c:
SetLastError( RtlNtStatusToDosError( status )); done: TRACE( "%s\n", debugstr_wn(filename, len) ); + if (!status || status == STATUS_BUFFER_TOO_SMALL)
didn't retest it, but the len \< size code path should already be handled in ntdll and i'd move this above the done: label (so you don't to init the status to O) and handle it in ``` if (status == STATUS_BUFFER_TOO_SMALL && size) filename[size - 1] = L'\0'; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10291#note_133845