From 019e6edf4754a4fb1f3d3d89d74c31706dc6b525 Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Thu, 22 Sep 2011 10:33:35 -0700 Subject: [PATCH] windows: NextEntryOffset is relative, not absolute --- src/win/fs-event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/win/fs-event.c b/src/win/fs-event.c index 8c4de262..bc23aff0 100644 --- a/src/win/fs-event.c +++ b/src/win/fs-event.c @@ -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,