From: gordon_gidluck Date: Sun, 14 Sep 2008 14:27:40 +0000 (+0000) Subject: changed CreateThread to _beginthreadex and ExitThread to _endthreadex (related to... X-Git-Tag: svn/1415~26 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=cb2dc775ec90852215fe1148a52079484dc37e25;p=portaudio changed CreateThread to _beginthreadex and ExitThread to _endthreadex (related to ticket #84) --- diff --git a/src/hostapi/wdmks/pa_win_wdmks.c b/src/hostapi/wdmks/pa_win_wdmks.c index 4c38fbd..440a284 100644 --- a/src/hostapi/wdmks/pa_win_wdmks.c +++ b/src/hostapi/wdmks/pa_win_wdmks.c @@ -3010,7 +3010,7 @@ static DWORD WINAPI ProcessingThread(LPVOID pParam) } PA_LOGL_; - ExitThread(0); + _endthreadex(0); return 0; } @@ -3045,7 +3045,7 @@ static PaError StartStream( PaStream *s ) PA_DEBUG(("Class ret = %d;",ret));*/ stream->streamStarted = 1; - stream->streamThread = CreateThread(NULL, 0, ProcessingThread, stream, 0, &dwID); + stream->streamThread = (HANDLE)_beginthreadex(NULL, 0, ProcessingThread, stream, 0, &dwID); if(stream->streamThread == NULL) { stream->streamStarted = 0;