ntoskrnl.exe: Dispatch server IRPs in critical region.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
49b834bb42
commit
e80b507f1e
|
@ -602,7 +602,9 @@ static void dispatch_irp( DEVICE_OBJECT *device, IRP *irp, struct dispatch_conte
|
|||
|
||||
context->irp = irp;
|
||||
device->CurrentIrp = irp;
|
||||
KeEnterCriticalRegion();
|
||||
IoCallDriver( device, irp );
|
||||
KeLeaveCriticalRegion();
|
||||
device->CurrentIrp = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -386,7 +386,6 @@ static void test_critical_region(BOOL is_dispatcher)
|
|||
KeLeaveCriticalRegion();
|
||||
|
||||
result = KeAreApcsDisabled();
|
||||
todo_wine_if(is_dispatcher)
|
||||
ok(result == is_dispatcher || broken(is_dispatcher && !result),
|
||||
"KeAreApcsDisabled returned %x\n", result);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue