]> git.saurik.com Git - wxWidgets.git/commitdiff
Add missing t_str() call to fix wxUSE_STL build after r73792.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Apr 2013 16:54:36 +0000 (16:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Apr 2013 16:54:36 +0000 (16:54 +0000)
Don't rely on implicit conversion from wxString to wxChar* which is not
available in all builds.

Closes #15145.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dlmsw.cpp

index b8363c605bdedc3b3783fcb5a78d260f047d6eb0..77338c0c05e2da7cb21eca7a6e54c1ca062901e2 100644 (file)
@@ -377,7 +377,7 @@ WXHMODULE wxDynamicLibrary::MSWGetModuleHandle(const wxString& name, void *addr)
             return hmod;
     }
 
-    return ::GetModuleHandle(name);
+    return ::GetModuleHandle(name.t_str());
 }
 
 #endif // wxUSE_DYNLIB_CLASS