Skip to content

Commit

Permalink
Merge pull request #125 from thaJeztah/sequential_update_const
Browse files Browse the repository at this point in the history
sequential: remove fileFlagSequentialScan const
  • Loading branch information
cpuguy83 committed Jan 17, 2023
2 parents d091cfe + 02607c5 commit c161267
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sequential/sequential_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ func openSequential(path string, mode int, _ uint32) (fd windows.Handle, err err
}
// Use FILE_FLAG_SEQUENTIAL_SCAN rather than FILE_ATTRIBUTE_NORMAL as implemented in golang.
// https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx
const fileFlagSequentialScan = 0x08000000 // FILE_FLAG_SEQUENTIAL_SCAN
h, e := windows.CreateFile(pathp, access, sharemode, sa, createmode, fileFlagSequentialScan, 0)
h, e := windows.CreateFile(pathp, access, sharemode, sa, createmode, windows.FILE_FLAG_SEQUENTIAL_SCAN, 0)
return h, e
}

Expand Down

0 comments on commit c161267

Please sign in to comment.