Commit 14d1855a authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntoskrnl: Set the PendingReturned field in IoCompleteRequest().

parent b332f962
...@@ -1989,6 +1989,7 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost ) ...@@ -1989,6 +1989,7 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
device = IoGetCurrentIrpStackLocation(irp)->DeviceObject; device = IoGetCurrentIrpStackLocation(irp)->DeviceObject;
else else
device = NULL; device = NULL;
irp->PendingReturned = !!(irpsp->Control & SL_PENDING_RETURNED);
if (call_flag) if (call_flag)
{ {
TRACE( "calling %p( %p, %p, %p )\n", routine, device, irp, irpsp->Context ); TRACE( "calling %p( %p, %p, %p )\n", routine, device, irp, irpsp->Context );
......
...@@ -1746,7 +1746,6 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont ...@@ -1746,7 +1746,6 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont
if (device == upper_device) if (device == upper_device)
{ {
todo_wine_if (completion_lower_pending)
ok(irp->PendingReturned == completion_lower_pending, "Got PendingReturned %u, expected %u.\n", ok(irp->PendingReturned == completion_lower_pending, "Got PendingReturned %u, expected %u.\n",
irp->PendingReturned, completion_lower_pending); irp->PendingReturned, completion_lower_pending);
...@@ -1763,7 +1762,6 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont ...@@ -1763,7 +1762,6 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont
} }
else else
{ {
todo_wine_if (completion_upper_pending)
ok(irp->PendingReturned == completion_upper_pending, "Got PendingReturned %u, expected %u.\n", ok(irp->PendingReturned == completion_upper_pending, "Got PendingReturned %u, expected %u.\n",
irp->PendingReturned, completion_upper_pending); irp->PendingReturned, completion_upper_pending);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment