Skip to content

Commit bb16adb

Browse files
committed
Fixed bug #35612 (iis6 Access Violation crash). (alacn dot uhahaa at gmail dot com)
1 parent 35c5dca commit bb16adb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Zend/zend_execute_API.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,14 +1247,16 @@ static unsigned __stdcall timeout_thread_proc(void *pArgs)
12471247
}
12481248
DestroyWindow(timeout_window);
12491249
UnregisterClass(wc.lpszClassName, NULL);
1250+
SetEvent(timeout_thread_handle);
12501251
return 0;
12511252
}
12521253

12531254

12541255
void zend_init_timeout_thread()
12551256
{
12561257
timeout_thread_event = CreateEvent(NULL, FALSE, FALSE, NULL);
1257-
timeout_thread_handle = _beginthreadex(NULL, 0, timeout_thread_proc, NULL, 0, &timeout_thread_id);
1258+
timeout_thread_handle = CreateEvent(NULL, FALSE, FALSE, NULL);
1259+
_beginthreadex(NULL, 0, timeout_thread_proc, NULL, 0, &timeout_thread_id);
12581260
WaitForSingleObject(timeout_thread_event, INFINITE);
12591261
}
12601262

0 commit comments

Comments
 (0)