Fixed copyright headers and stream length

This commit is contained in:
akallabeth 2022-06-30 13:07:42 +02:00 committed by akallabeth
parent 2755f915fa
commit ab159cc236
4 changed files with 5 additions and 6 deletions

View File

@ -298,10 +298,10 @@ static UINT enumerator_process_message(enumerator_server* enumerator)
goto out;
}
Stream_SetLength(s, BytesReturned);
if (!Stream_CheckAndLogRequiredLength(TAG, s, CAM_HEADER_SIZE))
return ERROR_NO_DATA;
Stream_SetLength(s, BytesReturned);
Stream_Read_UINT8(s, header.Version);
Stream_Read_UINT8(s, header.MessageId);

View File

@ -438,7 +438,7 @@ static UINT device_process_message(device_server* device)
goto out;
}
Stream_Seek(s, BytesReturned);
Stream_SetLength(s, BytesReturned);
if (!Stream_CheckAndLogRequiredLength(TAG, s, CAM_HEADER_SIZE))
return ERROR_NO_DATA;

View File

@ -185,7 +185,7 @@ static UINT telemetry_process_message(telemetry_server* telemetry)
goto out;
}
Stream_Seek(s, BytesReturned);
Stream_SetLength(s, BytesReturned);
if (!Stream_CheckAndLogRequiredLength(TAG, s, 2))
return ERROR_NO_DATA;

View File

@ -1,9 +1,8 @@
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Video Optimized Remoting Virtual Channel Extension
* Video Capture Virtual Channel Extension
*
* Copyright 2021 Armin Novak <armin.novak@thincast.com>
* Copyright 2021 Thincast Technologies GmbH
* Copyright 2022 Pascal Nowack <Pascal.Nowack@gmx.de>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.