]> Repos - portaudio/commitdiff
changed CreateThread to _beginthreadex and ExitThread to _endthreadex (related to...
authorgordon_gidluck <gordon_gidluck@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 14 Sep 2008 14:27:40 +0000 (14:27 +0000)
committergordon_gidluck <gordon_gidluck@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 14 Sep 2008 14:27:40 +0000 (14:27 +0000)
src/hostapi/wdmks/pa_win_wdmks.c

index 4c38fbdc4a955b9f4e471cfc5623532aae0f2884..440a284b5b93bbfb330c5886c2eab1417700e37d 100644 (file)
@@ -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;