mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[channel rdpdr] Clean up IRP on processing errors
This commit is contained in:
@@ -1390,10 +1390,16 @@ static UINT rdpdr_process_irp(rdpdrPlugin* rdpdr, wStream* s)
|
||||
return error;
|
||||
}
|
||||
|
||||
IFCALLRET(irp->device->IRPRequest, error, irp->device, irp);
|
||||
if (irp->device->IRPRequest)
|
||||
IFCALLRET(irp->device->IRPRequest, error, irp->device, irp);
|
||||
else
|
||||
irp->Discard(irp);
|
||||
|
||||
if (error)
|
||||
if (error != CHANNEL_RC_OK)
|
||||
{
|
||||
WLog_ERR(TAG, "device->IRPRequest failed with error %" PRIu32 "", error);
|
||||
irp->Discard(irp);
|
||||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user