Merge branch 'master' of github.com:FreeRDP/FreeRDP
This commit is contained in:
commit
d5edfa4721
@ -242,8 +242,6 @@ int freerdp_channels_data(freerdp* instance, UINT16 channelId, BYTE* data, int d
|
||||
|
||||
for (index = 0; index < mcs->channelCount; index++)
|
||||
{
|
||||
channel = &mcs->channels[index];
|
||||
|
||||
if (mcs->channels[index].ChannelId == channelId)
|
||||
{
|
||||
channel = &mcs->channels[index];
|
||||
|
@ -691,7 +691,7 @@ HANDLE WINAPI FreeRDP_WTSOpenServerA(LPSTR pServerName)
|
||||
|
||||
vcm->queue = MessageQueue_New(NULL);
|
||||
|
||||
vcm->dvc_channel_id_seq = 1;
|
||||
vcm->dvc_channel_id_seq = 0;
|
||||
vcm->dynamicVirtualChannels = ArrayList_New(TRUE);
|
||||
|
||||
client->ReceiveChannelData = WTSReceiveChannelData;
|
||||
@ -991,7 +991,7 @@ HANDLE WINAPI FreeRDP_WTSVirtualChannelOpenEx(DWORD SessionId, LPSTR pVirtualNam
|
||||
channel->receiveData = Stream_New(NULL, client->settings->VirtualChannelChunkSize);
|
||||
channel->queue = MessageQueue_New(NULL);
|
||||
|
||||
channel->channelId = vcm->dvc_channel_id_seq++;
|
||||
channel->channelId = InterlockedIncrement(&vcm->dvc_channel_id_seq);
|
||||
ArrayList_Add(vcm->dynamicVirtualChannels, channel);
|
||||
|
||||
s = Stream_New(NULL, 64);
|
||||
|
@ -90,7 +90,7 @@ struct WTSVirtualChannelManager
|
||||
|
||||
rdpPeerChannel* drdynvc_channel;
|
||||
BYTE drdynvc_state;
|
||||
UINT32 dvc_channel_id_seq;
|
||||
LONG dvc_channel_id_seq;
|
||||
|
||||
wArrayList* dynamicVirtualChannels;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user