mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 00:48:53 +02:00
registrybackend: close the key only if successfully opened
This commit is contained in:
@@ -1281,8 +1281,9 @@ registry_cache_update (GRegistryBackend *self,
|
|||||||
n_watches, changes);
|
n_watches, changes);
|
||||||
child_item = subkey_node->data;
|
child_item = subkey_node->data;
|
||||||
child_item->touched = TRUE;
|
child_item->touched = TRUE;
|
||||||
|
|
||||||
|
RegCloseKey (hsubpath);
|
||||||
}
|
}
|
||||||
RegCloseKey (hsubpath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result != ERROR_NO_MORE_ITEMS)
|
if (result != ERROR_NO_MORE_ITEMS)
|
||||||
|
Reference in New Issue
Block a user