[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Invalid handle access on windows in NSThread
From: |
Roland Schwingel |
Subject: |
Invalid handle access on windows in NSThread |
Date: |
Mon, 08 Mar 2010 11:41:05 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Hi...
There is the possibility that NSThread accesses an already invalid
windows thread event handle and than crashes. The attached trivial patch
fixes this.
Thanks for applying,
Roland
--- NSThread.m.orig 2010-03-08 10:55:16.000000000 +0100
+++ NSThread.m 2010-03-08 10:55:20.000000000 +0100
@@ -977,6 +977,7 @@
if (event != INVALID_HANDLE_VALUE)
{
CloseHandle(event);
+ event = INVALID_HANDLE_VALUE;
}
#else
if (inputFd >= 0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Invalid handle access on windows in NSThread,
Roland Schwingel <=