- CreateClassDeviceObject/ClassAddDevice: Again do not create device with exclusive access.

svn path=/trunk/; revision=41055
This commit is contained in:
Michael Martin 2009-05-23 02:02:48 +00:00
parent 56cc203023
commit 1b775222e7

View file

@ -331,7 +331,7 @@ CreateClassDeviceObject(
&DeviceNameU, &DeviceNameU,
FILE_DEVICE_MOUSE, FILE_DEVICE_MOUSE,
FILE_DEVICE_SECURE_OPEN, FILE_DEVICE_SECURE_OPEN,
TRUE, FALSE,
&Fdo); &Fdo);
if (NT_SUCCESS(Status)) if (NT_SUCCESS(Status))
goto cleanup; goto cleanup;
@ -625,7 +625,7 @@ ClassAddDevice(
NULL, NULL,
Pdo->DeviceType, Pdo->DeviceType,
Pdo->Characteristics & FILE_DEVICE_SECURE_OPEN ? FILE_DEVICE_SECURE_OPEN : 0, Pdo->Characteristics & FILE_DEVICE_SECURE_OPEN ? FILE_DEVICE_SECURE_OPEN : 0,
TRUE, FALSE,
&Fdo); &Fdo);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {