windows: NextEntryOffset is relative, not absolute

This commit is contained in:
Igor Zinkovsky 2011-09-22 10:33:35 -07:00
parent d9fb84c02c
commit 019e6edf47

View File

@ -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,