diff options
| author | Dmitry Stogov <dmitry@php.net> | 2005-12-22 16:46:15 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2005-12-22 16:46:15 +0000 |
| commit | 9c2ea13abc2c587b5b20a38d08044c5c749fdb59 (patch) | |
| tree | 7b419e9773d354d076312ede84d9acc23337cec9 /Zend/zend_execute_API.c | |
| parent | a0349727972a286d1cbd3faebaf356138ba98047 (diff) | |
| download | php-git-9c2ea13abc2c587b5b20a38d08044c5c749fdb59.tar.gz | |
Fixed bug #35612 (iis6 Access Violation crash). (alacn dot uhahaa at gmail dot com)
Diffstat (limited to 'Zend/zend_execute_API.c')
| -rw-r--r-- | Zend/zend_execute_API.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 7624643412..f10eb29941 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1284,6 +1284,7 @@ static unsigned __stdcall timeout_thread_proc(void *pArgs) } DestroyWindow(timeout_window); UnregisterClass(wc.lpszClassName, NULL); + SetEvent(timeout_thread_handle); return 0; } @@ -1291,7 +1292,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); } |
