X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f73bc315aac67f087106454a7f23a8a0d3a4bda2..3ac7b44cc0765b8444324d71b58cf648009d41c2:/src/common/dynlib.cpp diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index c7e7a28ed9..167249ab20 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -326,6 +326,7 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const bool failed = FALSE; void *symbol = 0; + wxUnusedVar(symbol); #if defined(__WXMAC__) && !defined(__DARWIN__) Ptr symAddress; CFragSymbolClass symClass; @@ -353,7 +354,11 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const symbol = 0; #elif defined(__WINDOWS__) +#ifdef __WXWINCE__ + symbol = (void*) ::GetProcAddress( m_handle, name ); +#else symbol = (void*) ::GetProcAddress( m_handle, name.mb_str() ); +#endif #else #error "runtime shared lib support not implemented"