From: rbencina Date: Wed, 31 Oct 2012 06:20:59 +0000 (+0000) Subject: fix for unicode build X-Git-Tag: pa_stable_v19_20140130_r1919~30 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=f33048b20cb58ae11b01e098bb994969d1164a43;p=portaudio fix for unicode build --- diff --git a/src/hostapi/wmme/pa_win_wmme.c b/src/hostapi/wmme/pa_win_wmme.c index fdd238b..e36ec6e 100644 --- a/src/hostapi/wmme/pa_win_wmme.c +++ b/src/hostapi/wmme/pa_win_wmme.c @@ -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 );