Re: [PATCH v6 0/4] MR6423: Implement NtQuerySystemEnvironmentValueEx, NtQuerySystemInformation SystemBootEnvironmentInformation, GetFirmwareType, GetFirmwareEnvironmentVariable*
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
546
Age (days ago)
546
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alfred Agrell (@Alcaro)