Browse Source

Fixed bug #35612 (iis6 Access Violation crash). (alacn dot uhahaa at gmail dot com)

migration/RELEASE_1_0_0
Dmitry Stogov 21 years ago
parent
commit
925f3f1880
  1. 4
      Zend/zend_execute_API.c

4
Zend/zend_execute_API.c

@ -1342,6 +1342,7 @@ static unsigned __stdcall timeout_thread_proc(void *pArgs)
}
DestroyWindow(timeout_window);
UnregisterClass(wc.lpszClassName, NULL);
SetEvent(timeout_thread_handle);
return 0;
}
@ -1349,7 +1350,8 @@ static unsigned __stdcall timeout_thread_proc(void *pArgs)
void zend_init_timeout_thread()
{
timeout_thread_event = CreateEvent(NULL, FALSE, FALSE, NULL);
timeout_thread_handle = _beginthreadex(NULL, 0, timeout_thread_proc, NULL, 0, &timeout_thread_id);
timeout_thread_handle = CreateEvent(NULL, FALSE, FALSE, NULL);
_beginthreadex(NULL, 0, timeout_thread_proc, NULL, 0, &timeout_thread_id);
WaitForSingleObject(timeout_thread_event, INFINITE);
}

Loading…
Cancel
Save