mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 08:46:17 +08:00
Cygwin: fhandler_netdrive::exists: fix new debug statement
The debug statement was wrong twice: Not only was it in the wrong spot, it was also supposed to print the share name and missed to add said argument. Fixes: df307349a09e ("Cygwin: fhandler_netdrive::exists: add debug statement") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
df307349a0
commit
8cc55d819b
@ -459,13 +459,14 @@ fhandler_netdrive::exists ()
|
||||
doesn't exist, or about 8 secs if DNS is unavailable. */
|
||||
sys_mbstowcs (name, CYG_MAX_PATH, get_name ());
|
||||
ret = GetAddrInfoW (name + 2, NULL, NULL, &ai);
|
||||
if (!ret)
|
||||
if (ret)
|
||||
{
|
||||
debug_printf ("GetAddrInfoW(%W) returned %d", ret);
|
||||
FreeAddrInfoW (ai);
|
||||
debug_printf ("GetAddrInfoW(%W) returned %d", name + 2, ret);
|
||||
return virt_none;
|
||||
}
|
||||
|
||||
return ret ? virt_none : virt_directory;
|
||||
FreeAddrInfoW (ai);
|
||||
return virt_directory;
|
||||
}
|
||||
|
||||
fhandler_netdrive::fhandler_netdrive ():
|
||||
|
Loading…
x
Reference in New Issue
Block a user