From 925f3f1880058bc0bed845e07dd90045ea1f6ca6 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 22 Dec 2005 16:46:03 +0000 Subject: [PATCH] Fixed bug #35612 (iis6 Access Violation crash). (alacn dot uhahaa at gmail dot com) --- Zend/zend_execute_API.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 5b369f7efd..e009c3a135 100644 --- a/Zend/zend_execute_API.c +++ b/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); } -- 2.40.0