From ceba50edbea883972b93f95c1f0e6afda5702b1b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 19 Apr 2000 20:03:51 +0000 Subject: [PATCH] * uinfo.cc (internal_getlogin): Use NetGetDCName() instead of NetGetAnyDCName(). --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/uinfo.cc | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0de8344e0..3383b28e9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 19 22:00:00 2000 Corinna Vinschen + + * uinfo.cc (internal_getlogin): Use NetGetDCName() instead + of NetGetAnyDCName(). + Mon Apr 17 12:08:47 2000 Kazuhiro Fujieda * syscalls.cc (_rename): Try MoveFile() at first before diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index fbf2eca2a..3bab25c48 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -48,9 +48,9 @@ internal_getlogin (struct pinfo *pi) { LPWSTR logon_srv = NULL; - if (!NetGetAnyDCName (NULL, - ui->wkui1_logon_domain, - (LPBYTE *)&logon_srv)) + if (!NetGetDCName (NULL, + ui->wkui1_logon_domain, + (LPBYTE *)&logon_srv)) wcstombs (pi->logsrv, logon_srv, // filter leading double backslashes (wcslen (logon_srv) + 1) * sizeof (WCHAR)); @@ -195,6 +195,6 @@ LoadDLLinitfunc (netapi32) } LoadDLLinit (netapi32) LoadDLLfunc (NetWkstaUserGetInfo, NetWkstaUserGetInfo@12, netapi32) -LoadDLLfunc (NetGetAnyDCName, NetGetAnyDCName@12, netapi32) +LoadDLLfunc (NetGetDCName, NetGetDCName@12, netapi32) LoadDLLfunc (NetApiBufferFree, NetApiBufferFree@4, netapi32) -- 2.43.5