* registry.cc (get_registry_hive_path): Change system_printf to
debug_printf. (load_registry_hive): Ditto.
This commit is contained in:
parent
c395d22876
commit
b6a46e417b
|
@ -1,3 +1,9 @@
|
||||||
|
2011-05-07 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* registry.cc (get_registry_hive_path): Change system_printf to
|
||||||
|
debug_printf.
|
||||||
|
(load_registry_hive): Ditto.
|
||||||
|
|
||||||
2011-05-06 Christopher Faylor <me.cygwin2011@cgf.cx>
|
2011-05-06 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* fhandler.h (fhandler_base::close_with_arch): Make non-virtual.
|
* fhandler.h (fhandler_base::close_with_arch): Make non-virtual.
|
||||||
|
|
|
@ -238,13 +238,13 @@ get_registry_hive_path (PCWSTR name, PWCHAR path)
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
if (!NT_SUCCESS (status) || buf.Length == 0)
|
if (!NT_SUCCESS (status) || buf.Length == 0)
|
||||||
{
|
{
|
||||||
system_printf ("ProfileImagePath for %W not found, status %p", name,
|
debug_printf ("ProfileImagePath for %W not found, status %p", name,
|
||||||
status);
|
status);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
wcpcpy (path, L"\\??\\");
|
wcpcpy (path, L"\\??\\");
|
||||||
ExpandEnvironmentStringsW (buf.Buffer, path + 4, NT_MAX_PATH - 4);
|
ExpandEnvironmentStringsW (buf.Buffer, path + 4, NT_MAX_PATH - 4);
|
||||||
system_printf ("ProfileImagePath for %W: %W", name, path);
|
debug_printf ("ProfileImagePath for %W: %W", name, path);
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,9 +277,9 @@ load_registry_hive (PCWSTR name)
|
||||||
/* Load file into key. */
|
/* Load file into key. */
|
||||||
status = NtLoadKey (&key_attr, &path_attr);
|
status = NtLoadKey (&key_attr, &path_attr);
|
||||||
if (!NT_SUCCESS (status))
|
if (!NT_SUCCESS (status))
|
||||||
system_printf ("Loading user registry hive %S into %S failed: %p",
|
debug_printf ("Loading user registry hive %S into %S failed: %p",
|
||||||
&upath, &ukey, status);
|
&upath, &ukey, status);
|
||||||
else
|
else
|
||||||
system_printf ("Loading user registry hive %S into %S SUCCEEDED: %p",
|
debug_printf ("Loading user registry hive %S into %S SUCCEEDED: %p",
|
||||||
&upath, &ukey, status);
|
&upath, &ukey, status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue