X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf63f3d3ae66075641094ab03328403c7d6e74df..198be845897a79ba350ae7f93db536ddb2eccfb2:/src/msw/utilsgui.cpp diff --git a/src/msw/utilsgui.cpp b/src/msw/utilsgui.cpp index 5b091fd03b..f01babae85 100644 --- a/src/msw/utilsgui.cpp +++ b/src/msw/utilsgui.cpp @@ -107,7 +107,9 @@ bool wxCheckForInterrupt(wxWindow *wnd) #ifndef __WXMICROWIN__ wxChar *wxLoadUserResource(const wxString& resourceName, const wxString& resourceType) { - HRSRC hResource = ::FindResource(wxGetInstance(), resourceName, resourceType); + HRSRC hResource = ::FindResource(wxGetInstance(), + resourceName.wx_str(), + resourceType.wx_str()); if ( hResource == 0 ) return NULL; @@ -126,8 +128,6 @@ wxChar *wxLoadUserResource(const wxString& resourceName, const wxString& resourc wxStrncpy(s,theText,len); s[len]=0; - // wxChar *s = copystring(theText); - // Obsolete in WIN32 #ifndef __WIN32__ UnlockResource(hData);