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