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.