March 26, 2026
11:40 p.m.
On Thu Mar 26 23:40:59 2026 +0000, eric pouech wrote:
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'; ``` I've moved the code from the done section but kept the `filename[len] = 0` in this function so the termination semantics are explicit in this API.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10291#note_133956