diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-13 01:35:15 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-13 01:35:15 +0000 |
commit | bc6ed5498655ea0e2cc4f0748ad8311e803d5b71 (patch) | |
tree | d5aa1cd43a0d4af104f86cdfeeef6d21d8c291ae /winsup/cygwin/uinfo.cc | |
parent | cb1826572ce94eabfa1e4b5e8737fad188a55048 (diff) | |
download | cygnal-bc6ed5498655ea0e2cc4f0748ad8311e803d5b71.tar.gz cygnal-bc6ed5498655ea0e2cc4f0748ad8311e803d5b71.tar.bz2 cygnal-bc6ed5498655ea0e2cc4f0748ad8311e803d5b71.zip |
* autoload.cc (wsock_init): Reorganize slightly to accomodate a new compiler.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index bed8ba9a0..d12d254f3 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -59,7 +59,7 @@ internal_getlogin (cygheap_user &user) if (user.name () && user.domain ()) debug_printf ("User: %s, Domain: %s, Logon Server: %s", user.name (), user.domain (), user.logsrv ()); - else if (!(ret = NetWkstaUserGetInfo (NULL, 1, (LPBYTE *)&wui))) + else if (!(ret = NetWkstaUserGetInfo (NULL, 1, (LPBYTE *) &wui))) { sys_wcstombs (buf, wui->wkui1_username, UNLEN + 1); user.set_name (buf); @@ -78,17 +78,17 @@ internal_getlogin (cygheap_user &user) } LPUSER_INFO_3 ui = NULL; WCHAR wuser[UNLEN + 1]; - WCHAR wlogsrv[INTERNET_MAX_HOST_NAME_LENGTH + 3]; /* HOMEDRIVE and HOMEPATH are wrong most of the time, too, after changing user context! */ sys_mbstowcs (wuser, user.name (), UNLEN + 1); if (NetUserGetInfo (NULL, wuser, 3, (LPBYTE *) &ui) && user.logsrv ()) { + WCHAR wlogsrv[INTERNET_MAX_HOST_NAME_LENGTH + 3]; strcat (strcpy (buf, "\\\\"), user.logsrv ()); sys_mbstowcs (wlogsrv, buf, INTERNET_MAX_HOST_NAME_LENGTH + 3); ui = NULL; - if (NetUserGetInfo (wlogsrv, wuser, 3,(LPBYTE *) &ui)) + if (NetUserGetInfo (wlogsrv, wuser, 3, (LPBYTE *) &ui)) ui = NULL; } if (ui) |