registrybackend: close the key only if successfully opened

This commit is contained in:
Ignacio Casal Quinteiro 2016-02-02 09:15:10 +01:00
parent bf3f827ca1
commit 5cc997f7c4

View File

@ -1281,8 +1281,9 @@ registry_cache_update (GRegistryBackend *self,
n_watches, changes);
child_item = subkey_node->data;
child_item->touched = TRUE;
RegCloseKey (hsubpath);
}
RegCloseKey (hsubpath);
}
if (result != ERROR_NO_MORE_ITEMS)