23 Sep
2022
23 Sep
'22
10:07 a.m.
Huw Davies (@huw) commented about server/registry.c:
memcpy( filename, req_data, req_data_len ); filename[req_data_len] = 0;
- load_registry( key, filename ); - release_object( key ); + if (req->flags & REG_APP_HIVE) + { + load_app_registry( key, filename ); + if (!get_error()) + reply->hkey = alloc_handle( current->process, key, req->access, objattr->attributes ); + } + else + load_registry( key, filename );
+ if (get_error()) + delete_key(key, 0);
This is changing the non `REG_APP_HIVE` path too. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/820#note_9118