* uinfo.cc (internal_getlogin): Use NetGetDCName() instead

of NetGetAnyDCName().
This commit is contained in:
Corinna Vinschen 2000-04-19 20:03:51 +00:00
parent 8c63f3b872
commit ceba50edbe
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Wed Apr 19 22:00:00 2000 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (internal_getlogin): Use NetGetDCName() instead
of NetGetAnyDCName().
Mon Apr 17 12:08:47 2000 Kazuhiro Fujieda <fujieda@jaist.ac.jp> Mon Apr 17 12:08:47 2000 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* syscalls.cc (_rename): Try MoveFile() at first before * syscalls.cc (_rename): Try MoveFile() at first before

View File

@ -48,9 +48,9 @@ internal_getlogin (struct pinfo *pi)
{ {
LPWSTR logon_srv = NULL; LPWSTR logon_srv = NULL;
if (!NetGetAnyDCName (NULL, if (!NetGetDCName (NULL,
ui->wkui1_logon_domain, ui->wkui1_logon_domain,
(LPBYTE *)&logon_srv)) (LPBYTE *)&logon_srv))
wcstombs (pi->logsrv, wcstombs (pi->logsrv,
logon_srv, // filter leading double backslashes logon_srv, // filter leading double backslashes
(wcslen (logon_srv) + 1) * sizeof (WCHAR)); (wcslen (logon_srv) + 1) * sizeof (WCHAR));
@ -195,6 +195,6 @@ LoadDLLinitfunc (netapi32)
} }
LoadDLLinit (netapi32) LoadDLLinit (netapi32)
LoadDLLfunc (NetWkstaUserGetInfo, NetWkstaUserGetInfo@12, netapi32) LoadDLLfunc (NetWkstaUserGetInfo, NetWkstaUserGetInfo@12, netapi32)
LoadDLLfunc (NetGetAnyDCName, NetGetAnyDCName@12, netapi32) LoadDLLfunc (NetGetDCName, NetGetDCName@12, netapi32)
LoadDLLfunc (NetApiBufferFree, NetApiBufferFree@4, netapi32) LoadDLLfunc (NetApiBufferFree, NetApiBufferFree@4, netapi32)