diff options
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go')
-rw-r--r-- | vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go b/vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go index 417faa562..febaf846e 100644 --- a/vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go +++ b/vendor/github.com/ncruces/go-sqlite3/util/osutil/open_windows.go @@ -101,6 +101,9 @@ func syscallOpen(path string, mode int, perm uint32) (fd Handle, err error) { const _FILE_FLAG_WRITE_THROUGH = 0x80000000 attrs |= _FILE_FLAG_WRITE_THROUGH } + if mode&O_NONBLOCK != 0 { + attrs |= FILE_FLAG_OVERLAPPED + } return CreateFile(pathp, access, sharemode, sa, createmode, attrs, 0) } |