Skip to content

Commit

Permalink
os, fix: fix error check
Browse files Browse the repository at this point in the history
  • Loading branch information
ngot authored and xicilion committed May 29, 2017
1 parent 8b08c7e commit 0381452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fibjs/src/os/os_win.cpp
Expand Up @@ -692,7 +692,7 @@ result_t os_base::homedir(exlib::string& retVal)
buffersize = sizeof(path);
if (!GetUserProfileDirectoryW(token, path, &buffersize)) {
r = LastError();
if (r != ERROR_INSUFFICIENT_BUFFER) {
if (r != -ERROR_INSUFFICIENT_BUFFER) {
CloseHandle(token);
return CHECK_ERROR(r);
}
Expand Down

0 comments on commit 0381452

Please sign in to comment.