5 Feb
2025
5 Feb
'25
4:48 p.m.
Rémi Bernon (@rbernon) commented about server/inproc_sync.c:
+ int unix_fd; + + if (linux_device_object) + return (struct linux_device *)grab_object( linux_device_object ); + + unix_fd = open( "/dev/ntsync", O_CLOEXEC | O_RDONLY ); + if (unix_fd == -1) + { + file_set_error(); + return NULL; + } + + if (!(device = alloc_object( &linux_device_ops ))) + { + close( unix_fd ); + set_error( STATUS_NO_MEMORY ); I think `alloc_object` already sets the error on failure.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7226#note_93732