Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Strip trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Nov 25, 2011
1 parent cfa4112 commit b4698d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/win/fs.c
Expand Up @@ -503,15 +503,15 @@ void fs__stat(uv_fs_t* req, const wchar_t* path) {
req->ptr = NULL;
} else {

/*
/*
* VC CRT doesn't properly set S_IFDIR in _fstati64,
* so we set it here if path is a directory.
*/
if (GetFileAttributesW(path) & FILE_ATTRIBUTE_DIRECTORY) {
mode = req->stat.st_mode;
mode &= ~_S_IFMT;
mode |= _S_IFDIR;

req->stat.st_mode = mode;
assert((req->stat.st_mode & _S_IFMT) == _S_IFDIR);
}
Expand Down Expand Up @@ -709,7 +709,7 @@ void fs__symlink(uv_fs_t* req, const wchar_t* path, const wchar_t* new_path,
req->last_error = ERROR_SUCCESS;
return;
}

SET_REQ_RESULT(req, result);
}

Expand Down Expand Up @@ -748,7 +748,7 @@ void fs__readlink(uv_fs_t* req, const wchar_t* path) {
FSCTL_GET_REPARSE_POINT,
NULL,
0,
buffer,
buffer,
MAXIMUM_REPARSE_DATA_BUFFER_SIZE,
&bytes_returned,
NULL);
Expand Down

0 comments on commit b4698d4

Please sign in to comment.