* debug.cc (threads): Avoid initialization.

* uinfo.cc (cygheap_user::ontherange): (from Corinna Vinschen) Actually make
below changes work.
This commit is contained in:
Christopher Faylor
2002-07-01 16:37:46 +00:00
parent db57a36336
commit b5e1ec7632
3 changed files with 8 additions and 3 deletions

View File

@ -257,7 +257,6 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
sys_mbstowcs (wuser, winname (), sizeof (wuser) / sizeof (*wuser));
if (!(ret = NetUserGetInfo (wlogsrv, wuser, 3,(LPBYTE *)&ui)))
{
char *p;
sys_wcstombs (homepath_env_buf, ui->usri3_home_dir, MAX_PATH);
if (!homepath_env_buf[0])
{
@ -266,7 +265,7 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
if (homepath_env_buf[0])
strcat (homepath_env_buf, "\\");
else
cygwin_conv_to_full_posix_path (homepath_env_buf, "/");
cygwin_conv_to_full_win32_path ("/", homepath_env_buf);
}
}
}