diff --git a/channels/audin/client/audin_main.c b/channels/audin/client/audin_main.c index a5e18b292..52eb4d36d 100644 --- a/channels/audin/client/audin_main.c +++ b/channels/audin/client/audin_main.c @@ -238,13 +238,13 @@ static UINT audin_process_formats(IWTSVirtualChannelCallback* pChannelCallback, if (format.cbSize > 0) { - Stream_Seek(s, format.cbSize); format.data = malloc(format.cbSize); if (!format.data) return ERROR_OUTOFMEMORY; memcpy(format.data, Stream_Pointer(s), format.cbSize); + Stream_Seek(s, format.cbSize); } DEBUG_DVC("wFormatTag=%"PRIu16" nChannels=%"PRIu16" nSamplesPerSec=%"PRIu32" " diff --git a/channels/rdpsnd/common/rdpsnd_common.c b/channels/rdpsnd/common/rdpsnd_common.c deleted file mode 100644 index f1d72eb59..000000000 --- a/channels/rdpsnd/common/rdpsnd_common.c +++ /dev/null @@ -1,25 +0,0 @@ -/** - * FreeRDP: A Remote Desktop Protocol Implementation - * Server Audio Virtual Channel - * - * Copyright 2018 Armin Novak - * Copyright 2018 Thincast Technologies GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#include "rdpsnd_common.h" - -/* Prevent this compilation unit from being empty */ -void placeholder(void) -{ -}