mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
committed by
GitHub
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);
|
||||
|
||||
Reference in New Issue
Block a user