diff --git a/deps/uv/src/win/fs-event.c b/deps/uv/src/win/fs-event.c index 76ecfebaa24c39..f206a1f36c6965 100644 --- a/deps/uv/src/win/fs-event.c +++ b/deps/uv/src/win/fs-event.c @@ -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) {