From: rossb Date: Fri, 4 Mar 2011 01:45:06 +0000 (+0000) Subject: use LoadLibraryA instead of LoadLibrary to support unicode build X-Git-Tag: pa_stable_v19_20110326_r1647~16 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=1783cf4fbacb0761af8c98161e0fa1ed8fc90b8c;p=portaudio use LoadLibraryA instead of LoadLibrary to support unicode build --- diff --git a/src/hostapi/asio/pa_asio.cpp b/src/hostapi/asio/pa_asio.cpp index 0215503..d77c7e7 100644 --- a/src/hostapi/asio/pa_asio.cpp +++ b/src/hostapi/asio/pa_asio.cpp @@ -1133,7 +1133,7 @@ PaError PaAsio_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex goto error; } - IsDebuggerPresent_ = (IsDebuggerPresentPtr)GetProcAddress( LoadLibrary( "Kernel32.dll" ), "IsDebuggerPresent" ); + IsDebuggerPresent_ = (IsDebuggerPresentPtr)GetProcAddress( LoadLibraryA( "Kernel32.dll" ), "IsDebuggerPresent" ); for( i=0; i < driverCount; ++i ) {