mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Jerome Gardou <jerome DOT gardou AT laposte DOT net>:
[kernel32] Set the SYNCHRONIZE access mask when using FILE_SYNCHRONOUS_IO options svn path=/trunk/; revision=44607
This commit is contained in:
@@ -545,7 +545,7 @@ RemoveDirectoryW (
|
||||
TRACE("NtPathU '%S'\n", NtPathU.Buffer);
|
||||
|
||||
Status = NtOpenFile(&DirectoryHandle,
|
||||
DELETE,
|
||||
DELETE | SYNCHRONIZE,
|
||||
&ObjectAttributes,
|
||||
&IoStatusBlock,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
|
||||
|
||||
@@ -273,7 +273,7 @@ MoveFileWithProgressW (
|
||||
NULL);
|
||||
|
||||
errCode = NtOpenFile( &hNewFile,
|
||||
GENERIC_READ | GENERIC_WRITE,
|
||||
GENERIC_READ | GENERIC_WRITE | SYNCHRONIZE,
|
||||
&ObjectAttributes,
|
||||
&IoStatusBlock,
|
||||
0,
|
||||
|
||||
@@ -968,7 +968,7 @@ GetVolumeNameForVolumeMountPointW(
|
||||
|
||||
RtlInitUnicodeString(&NtFileName, L"\\??\\MountPointManager");
|
||||
InitializeObjectAttributes(&ObjectAttributes, &NtFileName, 0, NULL, NULL);
|
||||
Status = NtOpenFile(&FileHandle, FILE_GENERIC_READ, &ObjectAttributes,
|
||||
Status = NtOpenFile(&FileHandle, FILE_GENERIC_READ | SYNCHRONIZE, &ObjectAttributes,
|
||||
&Iosb, FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||
FILE_SYNCHRONOUS_IO_NONALERT);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
||||
Reference in New Issue
Block a user