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

Commit

Permalink
windows: NextEntryOffset is relative, not absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky committed Sep 22, 2011
1 parent d9fb84c commit 019e6ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/win/fs-event.c
Expand Up @@ -268,9 +268,11 @@ void uv_process_fs_event_req(uv_loop_t* loop, uv_req_t* req,
assert(handle->req_pending);
handle->req_pending = 0;

file_info = (FILE_NOTIFY_INFORMATION*)(handle->buffer + offset);

if (REQ_SUCCESS(req) && req->overlapped.InternalHigh > 0) {
do {
file_info = (FILE_NOTIFY_INFORMATION*)(handle->buffer + offset);
file_info = (FILE_NOTIFY_INFORMATION*)((char*)file_info + offset);

/*
* Fire the event only if we were asked to watch a directory,
Expand Down

0 comments on commit 019e6ed

Please sign in to comment.