Commit 2fc3d7eb authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

server: Always close previous IRP handle.

parent 7c908186
......@@ -959,7 +959,6 @@ DECL_HANDLER(get_next_device_request)
if (req->prev)
{
set_irp_result( irp, req->iosb_status, get_req_data(), get_req_data_size(), req->result );
close_handle( current->process, req->prev ); /* avoid an extra round-trip for close */
}
else
{
......@@ -977,6 +976,9 @@ DECL_HANDLER(get_next_device_request)
set_irp_result( irp, req->status, NULL, 0, 0 );
}
if (req->prev)
close_handle( current->process, req->prev ); /* avoid an extra round-trip for close */
free_irp_params( irp );
release_object( irp );
manager->current_call = NULL;
......
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