diff --git a/src/kernel/src/fs/host/file.rs b/src/kernel/src/fs/host/file.rs index 70c64d4f9..a4036db39 100644 --- a/src/kernel/src/fs/host/file.rs +++ b/src/kernel/src/fs/host/file.rs @@ -208,7 +208,7 @@ impl HostFile { use std::ptr::null_mut; use windows_sys::Wdk::{ Foundation::OBJECT_ATTRIBUTES, - Storage::FileSystem::{NtCreateFile, FILE_DIRECTORY_FILE, FILE_OPEN}, + Storage::FileSystem::{NtCreateFile, FILE_CREATE, FILE_DIRECTORY_FILE}, }; use windows_sys::Win32::{ Foundation::{RtlNtStatusToDosError, STATUS_SUCCESS, UNICODE_STRING}, @@ -255,7 +255,7 @@ impl HostFile { null_mut(), FILE_ATTRIBUTE_DIRECTORY, FILE_SHARE_READ | FILE_SHARE_WRITE, - FILE_OPEN, + FILE_CREATE, FILE_DIRECTORY_FILE, null_mut(), 0,