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?