]> Repos - portaudio/commitdiff
use LoadLibraryA instead of LoadLibrary to support unicode build
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 4 Mar 2011 01:45:06 +0000 (01:45 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 4 Mar 2011 01:45:06 +0000 (01:45 +0000)
src/hostapi/asio/pa_asio.cpp

index 02155032a0cdecd1f36084109ef750e15a77db0e..d77c7e7391af57fe4124daa3e61a671baa1f1b56 100644 (file)
@@ -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 )
         {