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:
Lauri Nurmi
2019-08-02 21:13:36 +03:00
committed by Vadim Zeitlin
parent c836ca7312
commit b42895345a

View File

@@ -166,7 +166,10 @@ wxDynamicLibrary::RawLoad(const wxString& libname, int flags)
/* static */
void wxDynamicLibrary::Unload(wxDllType handle)
{
::FreeLibrary(handle);
if ( !::FreeLibrary(handle) )
{
wxLogLastError(wxT("FreeLibrary"));
}
}
/* static */