]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dlmsw.cpp
wxWinCE fixes.
[wxWidgets.git] / src / msw / dlmsw.cpp
index cd0d38ae2c6b0fb31a7a84455178a89a69032e30..177dd7e2021aca9421b75879e0c4344f65e1c1eb 100644 (file)
@@ -262,7 +262,13 @@ void wxDynamicLibrary::Unload(wxDllType handle)
 /* static */
 void *wxDynamicLibrary::RawGetSymbol(wxDllType handle, const wxString& name)
 {
-    return (void *)::GetProcAddress(handle, name.ToAscii());
+    return (void *)::GetProcAddress(handle,
+#ifdef __WXWINCE__
+                                            name.c_str()
+#else
+                                            name.ToAscii()
+#endif // __WXWINCE__
+                                   );
 }
 
 // ----------------------------------------------------------------------------