mirror of
https://github.com/reactos/reactos.git
synced 2024-06-26 07:51:52 +00:00
parent
cba5acbc48
commit
278f563e04
|
@ -227,7 +227,16 @@ int main(int argc, const char *argv[])
|
|||
(void) strcpy(home, pw->pw_dir);
|
||||
}
|
||||
#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 (setjmp(toplevel))
|
||||
exit(0);
|
||||
|
|
Loading…
Reference in a new issue