updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libecwj2 / libecwj2-3.3-3245a.patch
blobc5272629ffc323ae7264af8829671ddd07b58b78
1 --- ./Source/C/NCSUtil/NCSThread.cpp.orig 2010-10-29 16:17:21.000000000 +0100
2 +++ ./Source/C/NCSUtil/NCSThread.cpp 2010-10-29 16:20:15.000000000 +0100
3 @@ -47,6 +47,12 @@
4 //void **pStartData = (void **)NCSMalloc(2 * sizeof(void*), TRUE);
5 //pStartData[0] = (void*)this;
6 //pStartData[1] = pData;
7 + if( m_Thread != NCS_NULL_THREAD_ID )
8 + {
9 + //fprintf( stderr, "Cleanup old threadinfo in spawn()\n" );
10 + FreeInfo();
11 + m_Thread = NCS_NULL_THREAD_ID;
12 + }
13 m_pData = pData;
14 m_bRun = true;
15 return(NCSThreadSpawn(&m_Thread, CNCSThread::ThreadFunc, (void*)this, bCreateSuspended)==TRUE);