Log a debug message when unloading a dynamic library fails on MSW
Logging (even non-debug logging) in similar situation already happens on *nix. Closes https://github.com/wxWidgets/wxWidgets/pull/1545
This commit is contained in:
committed by
Vadim Zeitlin
parent
c836ca7312
commit
b42895345a
@@ -166,7 +166,10 @@ wxDynamicLibrary::RawLoad(const wxString& libname, int flags)
|
|||||||
/* static */
|
/* static */
|
||||||
void wxDynamicLibrary::Unload(wxDllType handle)
|
void wxDynamicLibrary::Unload(wxDllType handle)
|
||||||
{
|
{
|
||||||
::FreeLibrary(handle);
|
if ( !::FreeLibrary(handle) )
|
||||||
|
{
|
||||||
|
wxLogLastError(wxT("FreeLibrary"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
|
Reference in New Issue
Block a user