Rémi Bernon (@rbernon) commented about dlls/ntdll/unix/sync.c:
+ cache->handle = reply->handle; + cache->access = reply->access; + cache->type = reply->type; + cache->refcount = 1; + cache->closed = FALSE; + } + } + SERVER_END_REQ; + + if (ret) return ret; + + if ((ret = server_get_unix_fd( wine_server_ptr_handle( cache->handle ), + 0, &cache->fd, &needs_close, NULL, NULL ))) + return ret; + + if (desired_type && !inproc_sync_types_match( cache->type, desired_type )) As you've changed the `enum inproc_sync_type` definition, INPROC_SYNC_AUTO_EVENT is now 0, this will break this check I think? Maybe add a specific INPROC_SYNC_UNKNOWN = 0 enum value?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7226#note_93878