Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[reactos.git] / drivers / wdm / audio / sysaudio / deviface.c
index d06698f..77c08d7 100644 (file)
@@ -29,7 +29,7 @@ OpenDevice(
     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,