Author: hbelusca
Date: Fri Jul 19 15:19:03 2013
New Revision: 59515
URL:
http://svn.reactos.org/svn/reactos?rev=59515&view=rev
Log:
Final fixes for the SYNCHRONIZE flag
CORE-7361 #resolve #comment Fixed in revisions 59512, 59514 and 59515.
Modified:
trunk/reactos/drivers/storage/port/buslogic/Log.c
trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c
trunk/reactos/ntoskrnl/kdbg/kdb_symbols.cmake.c
Modified: trunk/reactos/drivers/storage/port/buslogic/Log.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/port/buslo…
==============================================================================
--- trunk/reactos/drivers/storage/port/buslogic/Log.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/port/buslogic/Log.c [iso-8859-1] Fri Jul 19 15:19:03
2013
@@ -44,7 +44,7 @@
DbgPrint("\n BusLogic - Creating the file");
status = ZwCreateFile(&FileHandle,
- FILE_APPEND_DATA,
+ FILE_APPEND_DATA | SYNCHRONIZE,
&objectAttributes,
&IoStatus,
0,
Modified: trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/sysaudio…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c [iso-8859-1] Fri Jul 19 15:19:03
2013
@@ -29,7 +29,7 @@
InitializeObjectAttributes(&ObjectAttributes, DeviceName, OBJ_KERNEL_HANDLE |
OBJ_CASE_INSENSITIVE, NULL, NULL);
Status = ZwCreateFile(&NodeHandle,
- GENERIC_READ | GENERIC_WRITE,
+ GENERIC_READ | GENERIC_WRITE | SYNCHRONIZE,
&ObjectAttributes,
&IoStatusBlock,
NULL,
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_symbols.cmake.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_symbols.…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_symbols.cmake.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_symbols.cmake.c [iso-8859-1] Fri Jul 19 15:19:03 2013
@@ -517,18 +517,18 @@
/* Open the file */
InitializeObjectAttributes(&ObjectAttributes,
FileName,
- OBJ_CASE_INSENSITIVE|OBJ_KERNEL_HANDLE,
+ OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL);
DPRINT("Attempting to open image: %wZ\n", FileName);
Status = ZwOpenFile(&FileHandle,
- FILE_READ_ACCESS,
+ FILE_READ_ACCESS | SYNCHRONIZE,
&ObjectAttributes,
&IoStatusBlock,
- FILE_SHARE_READ|FILE_SHARE_WRITE,
- FILE_NON_DIRECTORY_FILE|FILE_SYNCHRONOUS_IO_NONALERT);
+ FILE_SHARE_READ | FILE_SHARE_WRITE,
+ FILE_NON_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT);
if (!NT_SUCCESS(Status))
{
DPRINT("Could not open image file(%x): %wZ\n", Status, FileName);
@@ -539,7 +539,7 @@
Status = ObReferenceObjectByHandle
(FileHandle,
- FILE_READ_DATA|SYNCHRONIZE,
+ FILE_READ_DATA | SYNCHRONIZE,
NULL,
KernelMode,
(PVOID*)&FileObject,