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:
parent
7c908186ec
commit
2fc3d7eb29
|
@ -959,7 +959,6 @@ DECL_HANDLER(get_next_device_request)
|
||||||
if (req->prev)
|
if (req->prev)
|
||||||
{
|
{
|
||||||
set_irp_result( irp, req->iosb_status, get_req_data(), get_req_data_size(), req->result );
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -977,6 +976,9 @@ DECL_HANDLER(get_next_device_request)
|
||||||
set_irp_result( irp, req->status, NULL, 0, 0 );
|
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 );
|
free_irp_params( irp );
|
||||||
release_object( irp );
|
release_object( irp );
|
||||||
manager->current_call = NULL;
|
manager->current_call = NULL;
|
||||||
|
|
Loading…
Reference in New Issue