[channels,drdynvc] only set thread priority if we have one

This commit is contained in:
akallabeth 2024-06-25 14:29:09 +02:00
parent a01639e3c4
commit 8e81d24e14
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -1725,12 +1725,13 @@ static UINT drdynvc_virtual_channel_event_connected(drdynvcPlugin* drdynvc, LPVO
WLog_Print(drdynvc->log, WLOG_ERROR, "CreateThread failed!");
goto error;
}
}
if (!SetThreadPriority(drdynvc->thread, THREAD_PRIORITY_HIGHEST))
{
error = ERROR_INTERNAL_ERROR;
WLog_Print(drdynvc->log, WLOG_ERROR, "SetThreadPriority failed!");
goto error;
if (!SetThreadPriority(drdynvc->thread, THREAD_PRIORITY_HIGHEST))
{
error = ERROR_INTERNAL_ERROR;
WLog_Print(drdynvc->log, WLOG_ERROR, "SetThreadPriority failed!");
goto error;
}
}
error: