server: Always close previous IRP handle.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2022-03-10 16:18:13 -08:00 committed by Alexandre Julliard
parent 7c908186ec
commit 2fc3d7eb29
1 changed files with 3 additions and 1 deletions

View File

@ -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;