From a110afd52b9016934a62d44105777865b597bbe3 Mon Sep 17 00:00:00 2001 From: Nathan Youngman Date: Thu, 19 Jun 2014 20:45:43 -0600 Subject: [PATCH] windows: use syscall.ERROR_MORE_DATA from ztypes_windows (Go 1.3+) --- CHANGELOG.md | 4 ++++ fsnotify_windows.go | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13f38d5..02b1cd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.12.0 / 2014-06-19 + +* use syscall.ERROR_MORE_DATA from ztypes_windows (Go 1.3+) + ## v0.11.0 / 2014-06-12 * [API] Renamed Watch() to Add() and RemoveWatch() to Remove(). diff --git a/fsnotify_windows.go b/fsnotify_windows.go index dc150b2..4068ea7 100644 --- a/fsnotify_windows.go +++ b/fsnotify_windows.go @@ -41,11 +41,6 @@ const ( sys_FS_Q_OVERFLOW = 0x4000 ) -const ( - // TODO(nj): Use syscall.ERROR_MORE_DATA from ztypes_windows in Go 1.3+ - sys_ERROR_MORE_DATA syscall.Errno = 234 -) - // Event is the type of the notification messages // received on the watcher's Events channel. type Event struct { @@ -439,7 +434,7 @@ func (w *Watcher) readEvents() { } switch e { - case sys_ERROR_MORE_DATA: + case syscall.ERROR_MORE_DATA: if watch == nil { w.Errors <- errors.New("ERROR_MORE_DATA has unexpectedly null lpOverlapped buffer") } else { -- 2.50.1