Stream_Write_UINT16(s, pointerPosition->xPos); /* xPos (2 bytes) */
Stream_Write_UINT16(s, pointerPosition->yPos); /* yPos (2 bytes) */
- fastpath_send_update_pdu(rdp->fastpath, FASTPATH_UPDATETYPE_PTR_POSITION, s);
+ fastpath_send_update_pdu(rdp->fastpath, FASTPATH_UPDATETYPE_PTR_POSITION, s, FALSE);
Stream_Release(s);
}
if (thread->detached || !thread->started)
cleanup_handle(thread);
- pthread_exit(thread->dwExitCode);
+ pthread_exit((void*) (size_t) thread->dwExitCode);
return rc;
}
{
pthread_t tid = pthread_self();
- if (NULL == thread_list)
+ if (!thread_list)
{
WLog_ERR(TAG, "function called without existing thread list!");
#if defined(WITH_DEBUG_THREADS)
DumpThreadHandles();
#endif
+ pthread_exit(0);
}
else if (!ListDictionary_Contains(thread_list, &tid))
{
#if defined(WITH_DEBUG_THREADS)
DumpThreadHandles();
#endif
+ pthread_exit(0);
}
else
{
- WINPR_THREAD *thread;
+ WINPR_THREAD* thread;
+
ListDictionary_Lock(thread_list);
thread = ListDictionary_GetItemValue(thread_list, &tid);
+
assert(thread);
thread->exited = TRUE;
thread->dwExitCode = dwExitCode;
if (thread->detached || !thread->started)
cleanup_handle(thread);
- pthread_exit(thread->dwExitCode);
+ pthread_exit((void*) (size_t) thread->dwExitCode);
}
}