25 Oct
2024
25 Oct
'24
6:42 p.m.
Hans Leidekker (@hans) commented about dlls/wbemprox/builtin.c:
goto done; }
+ process = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, entry.th32ProcessID); + if (!process) + { + ERR("Failed to open process\n"); + status = FILL_STATUS_FAILED; + goto done; + } + size = ARRAY_SIZE(executable_path); + QueryFullProcessImageNameW(process, 0, executable_path, &size);
Please add a get_executablepath() helper and allocate the path dynamically. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6734#note_86117