Support Unicode module names in wxDynamicLibrary::MSWGetModuleHandle().
The module names are not necessarily ASCII strings, so use wxString instead of "char*" and W-version of GetModuleHandle() if appropriate. See #15138. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -359,7 +359,7 @@ public:
|
||||
// the returned handle reference count is not incremented so it doesn't
|
||||
// need to be freed using FreeLibrary() but it also means that it can
|
||||
// become invalid if the DLL is unloaded
|
||||
static WXHMODULE MSWGetModuleHandle(const char *name, void *addr);
|
||||
static WXHMODULE MSWGetModuleHandle(const wxString& name, void *addr);
|
||||
#endif // __WINDOWS__
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user