rdpdr_server_drive_close_file_callback remaining length fixed

This commit is contained in:
Andrey Af 2023-04-18 16:15:02 +08:00 committed by akallabeth
parent c0dc193a39
commit 58cdc9e82b
1 changed files with 7 additions and 0 deletions

View File

@ -3156,6 +3156,13 @@ static UINT rdpdr_server_drive_close_file_callback(RdpdrServerContext* context,
"RdpdrServerDriveCloseFileCallback: deviceId=%" PRIu32 ", completionId=%" PRIu32
", ioStatus=0x%" PRIx32 "",
deviceId, completionId, ioStatus);
// padding 5 bytes
if (!Stream_CheckAndLogRequiredLengthWLog(context->priv->log, s, 5))
return ERROR_INVALID_DATA;
Stream_Seek(s, 5);
/* Invoke the close file completion routine. */
context->OnDriveCloseFileComplete(context, irp->CallbackData, ioStatus);
/* Destroy the IRP. */