Sept. 9, 2024
10:50 a.m.
Alfred Agrell (@Alcaro) commented about dlls/kernel32/process.c:
RtlInitUnicodeString(&uname, wname);
- if (!set_ntstatus(NtQuerySystemEnvironmentValueEx(&uname, &vendor, buffer, - &ret_size, attributes))) + status = NtQuerySystemEnvironmentValueEx(&uname, &vendor, buffer, + &ret_size, attributes); + if (status) + { + if(status == STATUS_VARIABLE_NOT_FOUND)
what. set_ntstatus already maps those two correctly. And if it didn't, the correct solution would be to teach it, not skip it. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6423#note_81630