diff options
Diffstat (limited to 'lib/erl_interface/src/connect')
-rw-r--r-- | lib/erl_interface/src/connect/ei_connect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c index 36fe65e607..624100ad49 100644 --- a/lib/erl_interface/src/connect/ei_connect.c +++ b/lib/erl_interface/src/connect/ei_connect.c @@ -1719,6 +1719,12 @@ static int get_home(char *buf, int size) strcat(buf, homepath); return 1; } + else { + int len = GetWindowsDirectory(buf, size); + if (len) { + return (len < size); + } + } #else char* homepath = getenv("HOME"); if (homepath) { |