mirror of https://github.com/FreeRDP/FreeRDP
libfreerdp-core: fix server-side update encoding edge case
This commit is contained in:
parent
fdcf3a75be
commit
8a4e83bdfb
|
@ -517,6 +517,12 @@ static BOOL update_check_flush(rdpContext* context, int size)
|
|||
|
||||
s = update->us;
|
||||
|
||||
if (!update->us)
|
||||
{
|
||||
update->BeginPaint(context);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (Stream_GetPosition(s) + size + 256 >= settings->MultifragMaxRequestSize)
|
||||
{
|
||||
update_flush(context);
|
||||
|
|
|
@ -62,13 +62,16 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
|
|||
|
||||
thread = (WINPR_THREAD*) Object;
|
||||
|
||||
status = pthread_join(thread->thread, &thread_status);
|
||||
if (thread->started)
|
||||
{
|
||||
status = pthread_join(thread->thread, &thread_status);
|
||||
|
||||
if (status != 0)
|
||||
fprintf(stderr, "WaitForSingleObject: pthread_join failure: %d\n", status);
|
||||
if (status != 0)
|
||||
fprintf(stderr, "WaitForSingleObject: pthread_join failure: %d\n", status);
|
||||
|
||||
if (thread_status)
|
||||
thread->dwExitCode = ((DWORD) (size_t) thread_status);
|
||||
if (thread_status)
|
||||
thread->dwExitCode = ((DWORD) (size_t) thread_status);
|
||||
}
|
||||
}
|
||||
else if (Type == HANDLE_TYPE_MUTEX)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue