25 Nov
2022
25 Nov
'22
8:37 a.m.
Rémi Bernon (@rbernon) commented about dlls/ntdll/unix/loader.c:
*/ NTSTATUS WINAPI __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ) { - return ((unixlib_entry_t*)(UINT_PTR)handle)[code]( args ); + unixlib_entry_t *funcs = (unixlib_entry_t*)(UINT_PTR)handle; + if (funcs[code]) Imho it would be better to not have NULL entry point in the first place, and return that status from them as needed.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1543#note_17424