From 3b895deb97d0934277077faff9499321223116e3 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 24 May 2024 11:04:27 +0200 Subject: [PATCH] [channels,drdynvc] set thread priority --- channels/drdynvc/client/drdynvc_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/channels/drdynvc/client/drdynvc_main.c b/channels/drdynvc/client/drdynvc_main.c index 968d7e2b4..b05e82e12 100644 --- a/channels/drdynvc/client/drdynvc_main.c +++ b/channels/drdynvc/client/drdynvc_main.c @@ -1726,6 +1726,12 @@ static UINT drdynvc_virtual_channel_event_connected(drdynvcPlugin* drdynvc, LPVO goto error; } } + if (!SetThreadPriority(drdynvc->thread, THREAD_PRIORITY_HIGHEST)) + { + error = ERROR_INTERNAL_ERROR; + WLog_Print(drdynvc->log, WLOG_ERROR, "SetThreadPriority failed!"); + goto error; + } error: return error;