From cb2dc775ec90852215fe1148a52079484dc37e25 Mon Sep 17 00:00:00 2001 From: gordon_gidluck Date: Sun, 14 Sep 2008 14:27:40 +0000 Subject: [PATCH] changed CreateThread to _beginthreadex and ExitThread to _endthreadex (related to ticket #84) --- src/hostapi/wdmks/pa_win_wdmks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0