[channels,drdynvc] only set thread priority if we have one
This commit is contained in:
parent
a01639e3c4
commit
8e81d24e14
@ -1725,12 +1725,13 @@ static UINT drdynvc_virtual_channel_event_connected(drdynvcPlugin* drdynvc, LPVO
|
|||||||
WLog_Print(drdynvc->log, WLOG_ERROR, "CreateThread failed!");
|
WLog_Print(drdynvc->log, WLOG_ERROR, "CreateThread failed!");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!SetThreadPriority(drdynvc->thread, THREAD_PRIORITY_HIGHEST))
|
if (!SetThreadPriority(drdynvc->thread, THREAD_PRIORITY_HIGHEST))
|
||||||
{
|
{
|
||||||
error = ERROR_INTERNAL_ERROR;
|
error = ERROR_INTERNAL_ERROR;
|
||||||
WLog_Print(drdynvc->log, WLOG_ERROR, "SetThreadPriority failed!");
|
WLog_Print(drdynvc->log, WLOG_ERROR, "SetThreadPriority failed!");
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
Loading…
Reference in New Issue
Block a user