mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-25 02:43:45 +08:00
channels: cliprdr: server: add autoInitializationSequence
This commit is contained in:
parent
cf474bdb74
commit
f429275f86
@ -1356,10 +1356,13 @@ static DWORD WINAPI cliprdr_server_thread(LPVOID arg)
|
|||||||
events[nCount++] = cliprdr->StopEvent;
|
events[nCount++] = cliprdr->StopEvent;
|
||||||
events[nCount++] = ChannelEvent;
|
events[nCount++] = ChannelEvent;
|
||||||
|
|
||||||
if ((error = cliprdr_server_init(context)))
|
if (context->autoInitializationSequence)
|
||||||
{
|
{
|
||||||
WLog_ERR(TAG, "cliprdr_server_init failed with error %"PRIu32"!", error);
|
if ((error = cliprdr_server_init(context)))
|
||||||
goto out;
|
{
|
||||||
|
WLog_ERR(TAG, "cliprdr_server_init failed with error %"PRIu32"!", error);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
@ -1566,6 +1569,7 @@ CliprdrServerContext* cliprdr_server_context_new(HANDLE vcm)
|
|||||||
|
|
||||||
if (context)
|
if (context)
|
||||||
{
|
{
|
||||||
|
context->autoInitializationSequence = TRUE;
|
||||||
context->Open = cliprdr_server_open;
|
context->Open = cliprdr_server_open;
|
||||||
context->Close = cliprdr_server_close;
|
context->Close = cliprdr_server_close;
|
||||||
context->Start = cliprdr_server_start;
|
context->Start = cliprdr_server_start;
|
||||||
|
@ -103,6 +103,7 @@ struct _cliprdr_server_context
|
|||||||
psCliprdrServerFileContentsResponse ServerFileContentsResponse;
|
psCliprdrServerFileContentsResponse ServerFileContentsResponse;
|
||||||
|
|
||||||
rdpContext* rdpcontext;
|
rdpContext* rdpcontext;
|
||||||
|
BOOL autoInitializationSequence;
|
||||||
UINT32 lastRequestedFormatId;
|
UINT32 lastRequestedFormatId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user