* uinfo.cc (internal_getlogin): Use NetGetDCName() instead
of NetGetAnyDCName().
This commit is contained in:
parent
8c63f3b872
commit
ceba50edbe
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue