Added logic to look for the HOMEPATH env var if HOME is undefined.
This commit is contained in:
parent
b8a5db5580
commit
6b4c5c1c1b
|
@ -327,6 +327,10 @@ InitConfig()
|
||||||
|
|
||||||
char* home_dir = getenv("HOME");
|
char* home_dir = getenv("HOME");
|
||||||
if ( home_dir == NULL )
|
if ( home_dir == NULL )
|
||||||
|
{
|
||||||
|
home_dir = getenv("HOMEPATH");
|
||||||
|
}
|
||||||
|
if ( home_dir == NULL )
|
||||||
{
|
{
|
||||||
home_dir = "";
|
home_dir = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue