29 Sep
2022
29 Sep
'22
1:49 p.m.
Alexandre Julliard (@julliard) commented about server/registry.c:
if (fchdir( server_dir_fd ) == -1) fatal_error( "chdir to server dir: %s\n", strerror( errno )); }
+/* close the notification associated with a handle */ +static int key_close_handle( struct object *obj, struct process *process, obj_handle_t handle ) +{ + struct key *key = (struct key *) obj; + FILE *file; + struct notify *notify = find_notify( key, process, handle ); + if (notify) do_notification( key, notify, 1 ); + if (key->filename) + { + file = fopen( key->filename, "w" );
What happens if the handle was duplicated? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/820#note_9749