Misc. cleanup

Signed-off-by: John Starks <jostarks@microsoft.com>
This commit is contained in:
John Starks
2016-01-31 14:18:04 -08:00
parent 3aa597fc55
commit fe517a5118
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ type ioOperation struct {
}
func initIo() {
h, err := createIoCompletionPort(syscall.InvalidHandle, syscall.Handle(0), 0, 0xffffffff)
h, err := createIoCompletionPort(syscall.InvalidHandle, 0, 0, 0xffffffff)
if err != nil {
panic(err)
}
@@ -92,7 +92,7 @@ func (f *win32File) closeHandle() {
cancelIoEx(f.handle, nil)
f.wg.Wait()
// at this point, no new IO can start
syscall.CloseHandle(f.handle)
syscall.Close(f.handle)
f.handle = 0
}
}