29 Sep
2022
29 Sep
'22
1:49 p.m.
Alexandre Julliard (@julliard) commented about server/registry.c:
+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" ); + if (file) + { + save_all_subkeys( key, file ); + if (fclose( file )) file_set_error(); + } + else + file_set_error(); Setting the error in a close notification is not useful.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/820#note_9748