mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* debug.cc (threads): Avoid initialization.
* uinfo.cc (cygheap_user::ontherange): (from Corinna Vinschen) Actually make below changes work.
This commit is contained in:
parent
db57a36336
commit
b5e1ec7632
@ -1,3 +1,9 @@
|
|||||||
|
2002-07-01 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* debug.cc (threads): Avoid initialization.
|
||||||
|
* uinfo.cc (cygheap_user::ontherange): (from Corinna Vinschen) Actually
|
||||||
|
make below changes work.
|
||||||
|
|
||||||
2002-07-01 Christopher Faylor <cgf@redhat.com>
|
2002-07-01 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort
|
* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort
|
||||||
|
@ -31,7 +31,7 @@ typedef struct
|
|||||||
const char *name;
|
const char *name;
|
||||||
} thread_info;
|
} thread_info;
|
||||||
|
|
||||||
static NO_COPY thread_info threads[32] = {{0, NULL}}; // increase as necessary
|
static NO_COPY thread_info threads[32]; // increase as necessary
|
||||||
#define NTHREADS (sizeof (threads) / sizeof (threads[0]))
|
#define NTHREADS (sizeof (threads) / sizeof (threads[0]))
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -257,7 +257,6 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
|
|||||||
sys_mbstowcs (wuser, winname (), sizeof (wuser) / sizeof (*wuser));
|
sys_mbstowcs (wuser, winname (), sizeof (wuser) / sizeof (*wuser));
|
||||||
if (!(ret = NetUserGetInfo (wlogsrv, wuser, 3,(LPBYTE *)&ui)))
|
if (!(ret = NetUserGetInfo (wlogsrv, wuser, 3,(LPBYTE *)&ui)))
|
||||||
{
|
{
|
||||||
char *p;
|
|
||||||
sys_wcstombs (homepath_env_buf, ui->usri3_home_dir, MAX_PATH);
|
sys_wcstombs (homepath_env_buf, ui->usri3_home_dir, MAX_PATH);
|
||||||
if (!homepath_env_buf[0])
|
if (!homepath_env_buf[0])
|
||||||
{
|
{
|
||||||
@ -266,7 +265,7 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
|
|||||||
if (homepath_env_buf[0])
|
if (homepath_env_buf[0])
|
||||||
strcat (homepath_env_buf, "\\");
|
strcat (homepath_env_buf, "\\");
|
||||||
else
|
else
|
||||||
cygwin_conv_to_full_posix_path (homepath_env_buf, "/");
|
cygwin_conv_to_full_win32_path ("/", homepath_env_buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user