Added missing header and missing logic. :)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -281,10 +281,12 @@ wxDLManifestEntry::wxDLManifestEntry( const wxString &libname )
|
|||||||
|
|
||||||
wxDLManifestEntry::~wxDLManifestEntry()
|
wxDLManifestEntry::~wxDLManifestEntry()
|
||||||
{
|
{
|
||||||
UnregisterModules();
|
if( m_handle != 0 )
|
||||||
RestoreClassInfo();
|
{
|
||||||
|
UnregisterModules();
|
||||||
wxDllLoader::UnloadLibrary(m_handle);
|
RestoreClassInfo();
|
||||||
|
wxDllLoader::UnloadLibrary(m_handle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDLManifestEntry::UnrefLib()
|
bool wxDLManifestEntry::UnrefLib()
|
||||||
@@ -460,7 +462,7 @@ wxDLManifestEntry *wxDynamicLibrary::Link(const wxString &libname)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( !entry->UnrefLib(), 0,
|
wxCHECK_MSG( entry->UnrefLib(), 0,
|
||||||
_T("Currently linked library is, ..not loaded??") );
|
_T("Currently linked library is, ..not loaded??") );
|
||||||
entry = 0;
|
entry = 0;
|
||||||
}
|
}
|
||||||
|
@@ -18,18 +18,19 @@
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation "fontbase.h"
|
#pragma implementation "fontbase.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/font.h"
|
#include "wx/font.h"
|
||||||
|
#include "wx/intl.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/gdicmn.h"
|
#include "wx/gdicmn.h"
|
||||||
|
Reference in New Issue
Block a user