channels: cliprdr: server: add autoInitializationSequence

This commit is contained in:
kubistika 2019-08-04 17:37:56 +03:00 committed by akallabeth
parent cf474bdb74
commit f429275f86
2 changed files with 8 additions and 3 deletions

View File

@ -1356,10 +1356,13 @@ static DWORD WINAPI cliprdr_server_thread(LPVOID arg)
events[nCount++] = cliprdr->StopEvent;
events[nCount++] = ChannelEvent;
if ((error = cliprdr_server_init(context)))
if (context->autoInitializationSequence)
{
WLog_ERR(TAG, "cliprdr_server_init failed with error %"PRIu32"!", error);
goto out;
if ((error = cliprdr_server_init(context)))
{
WLog_ERR(TAG, "cliprdr_server_init failed with error %"PRIu32"!", error);
goto out;
}
}
while (1)
@ -1566,6 +1569,7 @@ CliprdrServerContext* cliprdr_server_context_new(HANDLE vcm)
if (context)
{
context->autoInitializationSequence = TRUE;
context->Open = cliprdr_server_open;
context->Close = cliprdr_server_close;
context->Start = cliprdr_server_start;

View File

@ -103,6 +103,7 @@ struct _cliprdr_server_context
psCliprdrServerFileContentsResponse ServerFileContentsResponse;
rdpContext* rdpcontext;
BOOL autoInitializationSequence;
UINT32 lastRequestedFormatId;
};