mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:33:01 +00:00
parent
cba5acbc48
commit
278f563e04
1 changed files with 10 additions and 1 deletions
|
@ -227,7 +227,16 @@ int main(int argc, const char *argv[])
|
||||||
(void) strcpy(home, pw->pw_dir);
|
(void) strcpy(home, pw->pw_dir);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
strcpy(home, "C:/");
|
cp = getenv("SystemDrive");
|
||||||
|
if (cp != NULL && *cp != 0)
|
||||||
|
{
|
||||||
|
strcpy(home, cp);
|
||||||
|
strcat(home, "/");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strcpy(home, "C:/");
|
||||||
|
}
|
||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
if (setjmp(toplevel))
|
if (setjmp(toplevel))
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue