5 Sep
2024
5 Sep
'24
5:54 p.m.
Alfred Agrell (@Alcaro) commented about dlls/kernel32/process.c:
+ GUID vendor = {0}; + UNICODE_STRING uname; + DWORD ret_size = size; + + if (!__wine_guid_from_string(guid, &vendor)) + { + SetLastError(RtlNtStatusToDosError(CO_E_CLASSSTRING)); + return 0; + } + + RtlInitUnicodeString(&uname, name); + + if (!set_ntstatus( + NtQuerySystemEnvironmentValueEx(&uname, &vendor, buffer, &ret_size, attributes))) + { + RtlFreeUnicodeString(&uname); There's a few unexpected RtlFreeUnicodeString here too.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6423#note_81249