This will make tools like "net registry" also fill the registry
with the basic hives and keys.
Michael
if (!W_ERROR_IS_OK(werr)) {
DEBUG(0, ("Failed to initialize the reghook cache: %s\n",
win_errstr(werr)));
+ goto done;
+ }
+
+ /* setup the necessary keys and values */
+
+ werr = init_registry_data();
+ if (!W_ERROR_IS_OK(werr)) {
+ DEBUG(0, ("Failed to initialize data in registry!\n"));
}
done:
goto fail;
}
- /* setup the necessary keys and values */
-
- werr = init_registry_data();
- if (!W_ERROR_IS_OK(werr)) {
- DEBUG(0, ("Failed to initialize data in registry!\n"));
- goto fail;
- }
-
/* build the cache tree of registry hooks */
for ( i=0; reg_hooks[i].keyname; i++ ) {