]> Repos - portaudio/commitdiff
pa_win_wmme.c: replace LPCTSTR with LPCWSTR (#597)
authorJohn Melas <john@jmelas.gr>
Wed, 23 Jun 2021 00:15:57 +0000 (03:15 +0300)
committerGitHub <noreply@github.com>
Wed, 23 Jun 2021 00:15:57 +0000 (10:15 +1000)
src/hostapi/wmme/pa_win_wmme.c

index 42a660141bb10f7c4b9cb101e65f66dfd760a567..22af147a79cabcd39dc201141c1af297c1c0aed9 100644 (file)
@@ -329,13 +329,13 @@ static PaError CreateEventWithPaError( HANDLE *handle,
         LPSECURITY_ATTRIBUTES lpEventAttributes,
         BOOL bManualReset,
         BOOL bInitialState,
-        LPCTSTR lpName )
+        LPCWSTR lpName )
 {
     PaError result = paNoError;
 
     *handle = NULL;
 
-    *handle = CreateEvent( lpEventAttributes, bManualReset, bInitialState, lpName );
+    *handle = CreateEventW( lpEventAttributes, bManualReset, bInitialState, lpName );
     if( *handle == NULL )
     {
         result = paUnanticipatedHostError;