Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grab file name from file_info for accuracy #4429

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deps/uv/src/win/fs-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,9 @@ void uv_process_fs_event_req(uv_loop_t* loop, uv_req_t* req,
}
}
} else {
/* We already have the long name of the file, so just use it. */
filenamew = handle->filew;
sizew = -1;
/* Switched to using file_info->FileName for filename accuracy. handle->filew is a closest match not accurate path. */
filenamew = file_info->FileName;
sizew = file_info->FileNameLength / sizeof(WCHAR);
}

if (filenamew) {
Expand Down