use local variable since shl_findsym modifies the handle argument
to indicate where the symbol was found git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -264,7 +264,10 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const
|
|||||||
symbol = dlsym( m_handle, name.fn_str() );
|
symbol = dlsym( m_handle, name.fn_str() );
|
||||||
|
|
||||||
#elif defined(HAVE_SHL_LOAD)
|
#elif defined(HAVE_SHL_LOAD)
|
||||||
if( shl_findsym( &m_handle, name.fn_str(), TYPE_UNDEFINED, &symbol ) != 0 )
|
// use local variable since shl_findsym modifies the handle argument
|
||||||
|
// to indicate where the symbol was found (GD)
|
||||||
|
wxDllType the_handle = m_handle;
|
||||||
|
if( shl_findsym( &the_handle, name.fn_str(), TYPE_UNDEFINED, &symbol ) != 0 )
|
||||||
symbol = 0;
|
symbol = 0;
|
||||||
|
|
||||||
#elif defined(__WINDOWS__)
|
#elif defined(__WINDOWS__)
|
||||||
|
Reference in New Issue
Block a user