Commit 8294b2c8 authored by Luke Deller's avatar Luke Deller Committed by Alexandre Julliard

kernelbase: Translate FILE_FLAG_SEQUENTIAL_SCAN.

Translate FILE_FLAG_SEQUENTIAL_SCAN into the corresponding flag for NtCreateFile options Signed-off-by: 's avatarLuke Deller <luke@deller.id.au> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 1ca67c8b
...@@ -723,6 +723,8 @@ static UINT get_nt_file_options( DWORD attributes ) ...@@ -723,6 +723,8 @@ static UINT get_nt_file_options( DWORD attributes )
options |= FILE_SYNCHRONOUS_IO_NONALERT; options |= FILE_SYNCHRONOUS_IO_NONALERT;
if (attributes & FILE_FLAG_RANDOM_ACCESS) if (attributes & FILE_FLAG_RANDOM_ACCESS)
options |= FILE_RANDOM_ACCESS; options |= FILE_RANDOM_ACCESS;
if (attributes & FILE_FLAG_SEQUENTIAL_SCAN)
options |= FILE_SEQUENTIAL_ONLY;
if (attributes & FILE_FLAG_WRITE_THROUGH) if (attributes & FILE_FLAG_WRITE_THROUGH)
options |= FILE_WRITE_THROUGH; options |= FILE_WRITE_THROUGH;
return options; return options;
...@@ -3227,6 +3229,7 @@ HANDLE WINAPI DECLSPEC_HOTPATCH OpenFileById( HANDLE handle, LPFILE_ID_DESCRIPTO ...@@ -3227,6 +3229,7 @@ HANDLE WINAPI DECLSPEC_HOTPATCH OpenFileById( HANDLE handle, LPFILE_ID_DESCRIPTO
if (flags & FILE_FLAG_NO_BUFFERING) options |= FILE_NO_INTERMEDIATE_BUFFERING; if (flags & FILE_FLAG_NO_BUFFERING) options |= FILE_NO_INTERMEDIATE_BUFFERING;
if (!(flags & FILE_FLAG_OVERLAPPED)) options |= FILE_SYNCHRONOUS_IO_NONALERT; if (!(flags & FILE_FLAG_OVERLAPPED)) options |= FILE_SYNCHRONOUS_IO_NONALERT;
if (flags & FILE_FLAG_RANDOM_ACCESS) options |= FILE_RANDOM_ACCESS; if (flags & FILE_FLAG_RANDOM_ACCESS) options |= FILE_RANDOM_ACCESS;
if (flags & FILE_FLAG_SEQUENTIAL_SCAN) options |= FILE_SEQUENTIAL_ONLY;
flags &= FILE_ATTRIBUTE_VALID_FLAGS; flags &= FILE_ATTRIBUTE_VALID_FLAGS;
objectName.Length = sizeof(ULONGLONG); objectName.Length = sizeof(ULONGLONG);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment