X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b61d8079f54ee9fd67bd2a1e42970bc30031e20a..1e151594721201f2048aa295dcf35acd28f012b9:/src/msw/dde.cpp?ds=inline diff --git a/src/msw/dde.cpp b/src/msw/dde.cpp index 9fd53fd87d..26a13fc678 100644 --- a/src/msw/dde.cpp +++ b/src/msw/dde.cpp @@ -308,7 +308,7 @@ bool wxDDEServer::Create(const wxString& server) wxDDEServer::~wxDDEServer() { - if ( !!m_serviceName ) + if ( !m_serviceName.IsEmpty() ) { HSZ hsz = DDEAtomFromString(m_serviceName); @@ -561,7 +561,7 @@ bool wxDDEConnection::Execute(const wxChar *data, int size, wxIPCFormat format) size = wxStrlen(data) + 1; } - bool ok = DdeClientTransaction((LPBYTE)data, + bool ok = DdeClientTransaction((LPBYTE)data, size * sizeof(wxChar), GetHConv(), NULL, @@ -621,7 +621,7 @@ bool wxDDEConnection::Poke(const wxString& item, wxChar *data, int size, wxIPCFo } HSZ item_atom = DDEGetAtom(item); - bool ok = DdeClientTransaction((LPBYTE)data, + bool ok = DdeClientTransaction((LPBYTE)data, size * sizeof(wxChar), GetHConv(), item_atom, format,