From: gordon_gidluck Date: Sun, 14 Sep 2008 14:18:17 +0000 (+0000) Subject: change CreateThread to _beginthreadex (see ticket #84) X-Git-Tag: svn/1415~27 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=7bcec2a83faeba70e639a2a12f7d6a4631d0c009;p=portaudio change CreateThread to _beginthreadex (see ticket #84) --- diff --git a/src/hostapi/wmme/pa_win_wmme.c b/src/hostapi/wmme/pa_win_wmme.c index c2ef68d..2f58cfe 100644 --- a/src/hostapi/wmme/pa_win_wmme.c +++ b/src/hostapi/wmme/pa_win_wmme.c @@ -3244,7 +3244,7 @@ static PaError StartStream( PaStream *s ) if( result != paNoError ) goto error; /* Create thread that waits for audio buffers to be ready for processing. */ - stream->processingThread = CreateThread( 0, 0, ProcessingThreadProc, stream, 0, &stream->processingThreadId ); + stream->processingThread = (HANDLE)_beginthreadex( 0, 0, ProcessingThreadProc, stream, 0, &stream->processingThreadId ); if( !stream->processingThread ) { result = paUnanticipatedHostError;