diff options
Diffstat (limited to 'src/rcchome.c')
-rw-r--r-- | src/rcchome.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rcchome.c b/src/rcchome.c index bf72df1..becbaac 100644 --- a/src/rcchome.c +++ b/src/rcchome.c @@ -49,8 +49,11 @@ void rccHomeSet() { #ifdef HAVE_PWD_H struct passwd *pw; #endif /* HAVE_PWD_H */ - +#ifdef _WIN32 + tmp = getenv ("HOMEPATH"); +#else tmp = getenv ("HOME"); +#endif if (tmp) rcc_home_dir = strdup (tmp); #ifdef HAVE_PWD_H else { |