Skip to content
Permalink
Browse files

os, bugfix: fix os.homedir() when USERPROFILE not set on Windows (#503)

  • Loading branch information...
ngot authored and xicilion committed May 23, 2019
1 parent 4272135 commit 46da2f74a1d5854e9d2a15dd09df50199fe9bd2c
Showing with 1 addition and 2 deletions.
  1. +1 −2 fibjs/src/os/os_win.cpp
@@ -734,8 +734,7 @@ result_t os_base::homedir(exlib::string& retVal)

CloseHandle(token);

buffersize = sizeof(path);
retVal = utf16to8String(path, (int32_t)buffersize);
retVal = utf16to8String(path, (int32_t)buffersize - 1);
}
path_base::normalize(retVal, retVal);

0 comments on commit 46da2f7

Please sign in to comment.
You can’t perform that action at this time.