* due to a resolver timeout.
*/
HANDLE mutex_waiting = NULL;
- if (!DuplicateHandle(GetCurrentProcess(), td->mutex_waiting,
- GetCurrentProcess(), &mutex_waiting, 0, FALSE,
+ HANDLE curr_proc = GetCurrentProcess();
+
+ if (!DuplicateHandle(curr_proc, td->mutex_waiting,
+ curr_proc, &mutex_waiting, 0, FALSE,
DUPLICATE_SAME_ACCESS)) {
/* failed to duplicate the mutex, no point in continuing */
return 0;
* due to a resolver timeout.
*/
HANDLE mutex_waiting = NULL;
- if (!DuplicateHandle(GetCurrentProcess(), td->mutex_waiting,
- GetCurrentProcess(), &mutex_waiting, 0, FALSE,
+ HANDLE curr_proc = GetCurrentProcess();
+
+ if (!DuplicateHandle(curr_proc, td->mutex_waiting,
+ curr_proc, &mutex_waiting, 0, FALSE,
DUPLICATE_SAME_ACCESS)) {
/* failed to duplicate the mutex, no point in continuing */
return 0;
}
+#ifndef _WIN32_WCE
*stderr = *td->stderr_file;
+#endif
itoa(conn->async.port, service, 10);
(LPTHREAD_START_ROUTINE) THREAD_FUNC,
conn, 0, &td->thread_id);
#else
-
td->thread_hnd = (HANDLE) _beginthreadex(NULL, 0, THREAD_FUNC,
conn, 0, &td->thread_id);
#endif