* net.cc (get_ipv4fromreg_ipcnt): Fix debug output. Only create debug
output if error is not ERROR_FILE_NOT_FOUND. (get_ipv4fromreg): Ditto.
This commit is contained in:
parent
77a5d6ccdf
commit
9dda712bd9
|
@ -1,3 +1,9 @@
|
||||||
|
2010-11-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* net.cc (get_ipv4fromreg_ipcnt): Fix debug output. Only create debug
|
||||||
|
output if error is not ERROR_FILE_NOT_FOUND.
|
||||||
|
(get_ipv4fromreg): Ditto.
|
||||||
|
|
||||||
2010-11-18 Corinna Vinschen <corinna@vinschen.de>
|
2010-11-18 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_tty.cc (fhandler_tty_slave::fchown): Initialize mode to 0.
|
* fhandler_tty.cc (fhandler_tty_slave::fchown): Initialize mode to 0.
|
||||||
|
|
|
@ -1720,7 +1720,8 @@ get_ipv4fromreg_ipcnt (const char *name)
|
||||||
if ((ret = RegOpenKeyEx (HKEY_LOCAL_MACHINE, regkey, 0, KEY_READ,
|
if ((ret = RegOpenKeyEx (HKEY_LOCAL_MACHINE, regkey, 0, KEY_READ,
|
||||||
&key)) != ERROR_SUCCESS)
|
&key)) != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
debug_printf ("RegOpenKeyEx(%s), win32 error %ld", ret);
|
if (ret != ERROR_FILE_NOT_FOUND)
|
||||||
|
debug_printf ("RegOpenKeyEx(%s), win32 error %ld", regkey, ret);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* If DHCP is used, we have only one address. */
|
/* If DHCP is used, we have only one address. */
|
||||||
|
@ -1754,7 +1755,8 @@ get_ipv4fromreg (struct ifall *ifp, const char *name, DWORD idx)
|
||||||
if ((ret = RegOpenKeyEx (HKEY_LOCAL_MACHINE, regkey, 0, KEY_READ, &key))
|
if ((ret = RegOpenKeyEx (HKEY_LOCAL_MACHINE, regkey, 0, KEY_READ, &key))
|
||||||
!= ERROR_SUCCESS)
|
!= ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
debug_printf ("RegOpenKeyEx(%s), win32 error %ld", ret);
|
if (ret != ERROR_FILE_NOT_FOUND)
|
||||||
|
debug_printf ("RegOpenKeyEx(%s), win32 error %ld", regkey, ret);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* If DHCP is used, we have only one address. */
|
/* If DHCP is used, we have only one address. */
|
||||||
|
|
Loading…
Reference in New Issue