X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2b6da49e2184e17b4993dd37448cf0156d8b143..3eabbbcc5d6a3dc2395a48eeed3da4bc894f644b:/src/msw/dde.cpp?ds=sidebyside diff --git a/src/msw/dde.cpp b/src/msw/dde.cpp index 10f0dc792a..ce2f37211b 100644 --- a/src/msw/dde.cpp +++ b/src/msw/dde.cpp @@ -1068,7 +1068,7 @@ static HSZ DDEAtomFromString(const wxString& s) { wxASSERT_MSG( DDEIdInst, wxT("DDE not initialized") ); - HSZ hsz = DdeCreateStringHandle(DDEIdInst, const_cast(static_cast(s.t_str())), DDE_CP); + HSZ hsz = DdeCreateStringHandle(DDEIdInst, wxMSW_CONV_LPTSTR(s), DDE_CP); if ( !hsz ) { DDELogError(_("Failed to create DDE string"));