summaryrefslogtreecommitdiff
path: root/os/os-windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/os-windows.h')
-rw-r--r--os/os-windows.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/os-windows.h b/os/os-windows.h
index f7712a17..9edacf33 100644
--- a/os/os-windows.h
+++ b/os/os-windows.h
@@ -36,8 +36,8 @@ static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
HANDLE hFile;
if (f->hFile == NULL) {
- hFile = CreateFile(f->file_name, (GENERIC_READ | GENERIC_WRITE),
- (FILE_SHARE_READ | FILE_SHARE_WRITE), NULL, OPEN_EXISTING, 0, NULL);
+ hFile = CreateFile(f->file_name, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
+ NULL, OPEN_EXISTING, 0, NULL);
} else {
hFile = f->hFile;
}