]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dlmsw.cpp
compilation fix for Windows after the last change (misplaced #endif)
[wxWidgets.git] / src / msw / dlmsw.cpp
index 0b4d76de179e5f59ed52277e0eecc35495e71bf5..9b1e7428fbddc36613d44648388422011269ba1c 100644 (file)
@@ -65,7 +65,7 @@ private:
     wxDynamicLibrary m_dll;
 
 
-    DECLARE_NO_COPY_CLASS(wxVersionDLL)
+    wxDECLARE_NO_COPY_CLASS(wxVersionDLL);
 };
 
 // class used to create wxDynamicLibraryDetails objects
@@ -282,9 +282,11 @@ wxDllType wxDynamicLibrary::GetProgramHandle()
 
 /* static */
 wxDllType
-wxDynamicLibrary::RawLoad(const wxString& libname, int WXUNUSED(flags))
+wxDynamicLibrary::RawLoad(const wxString& libname, int flags)
 {
-    return ::LoadLibrary(libname.t_str());
+    return flags & wxDL_GET_LOADED
+            ? ::GetModuleHandle(libname.t_str())
+            : ::LoadLibrary(libname.t_str());
 }
 
 /* static */