1 Apr
2025
1 Apr
'25
5:09 p.m.
Jacek Caban (@jacek) commented about server/user.c:
DECL_HANDLER(alloc_user_handle) { - reply->handle = alloc_user_handle( current->process, req->type ); + reply->handle = alloc_user_handle( (void *)-1 /* never used */, req->type ); }
/* free an arbitrary user handle */ DECL_HANDLER(free_user_handle) { - struct user_handle *entry; + const user_entry_t *entry;
if ((entry = handle_to_entry( req->handle )) && entry->type == req->type) - free_user_entry( entry ); + free_user_entry( (user_entry_t *)entry ); It looks like `handle_to_entry` shouldn't return const.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7610#note_99531