X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6906a06a24cf6dd081f1bc955c3255765a0b845..23fb33aa4e15110d41b5a16fff438e44e0cb3ea9:/src/msw/dde.cpp diff --git a/src/msw/dde.cpp b/src/msw/dde.cpp index 5b542f7e9b..550a8fc1cd 100644 --- a/src/msw/dde.cpp +++ b/src/msw/dde.cpp @@ -636,16 +636,16 @@ wxDDEConnection::DoExecute(const void *data, size_t size, wxIPCFormat format) DWORD result; bool ok = DdeClientTransaction(realData, - realSize, - GetHConv(), - NULL, - // MSDN: if the transaction specified by - // the wType parameter does not pass data - // or is XTYP_EXECUTE, wFmt should be zero. - 0, - XTYP_EXECUTE, - DDE_TIMEOUT, - &result) != 0; + realSize*sizeof(wxChar), + GetHConv(), + NULL, + // MSDN: if the transaction specified by + // the wType parameter does not pass data + // or is XTYP_EXECUTE, wFmt should be zero. + 0, + XTYP_EXECUTE, + DDE_TIMEOUT, + &result) != 0; if ( !ok ) {