]> Repos - portaudio/commitdiff
fix for unicode build
authorrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 31 Oct 2012 06:20:59 +0000 (06:20 +0000)
committerrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 31 Oct 2012 06:20:59 +0000 (06:20 +0000)
src/hostapi/wmme/pa_win_wmme.c

index fdd238b0c3feb796e1e6224a7680c8a88f207031..e36ec6ea70843216eb7c77058262c5ba60cdf35a 100644 (file)
@@ -450,7 +450,7 @@ static PaDeviceIndex GetEnvDefaultDeviceID( char *envName )
 #ifndef WIN32_PLATFORM_PSPC /* no GetEnvironmentVariable on PocketPC */
 
     /* Let user determine default device by setting environment variable. */
-    hresult = GetEnvironmentVariable( envName, envbuf, PA_ENV_BUF_SIZE_ );
+    hresult = GetEnvironmentVariableA( envName, envbuf, PA_ENV_BUF_SIZE_ );
     if( (hresult > 0) && (hresult < PA_ENV_BUF_SIZE_) )
     {
         recommendedIndex = atoi( envbuf );