X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/125afca0c0e4d060cb0edbf0c498048f7cb66c13..refs/heads/master:/src/msw/dde.cpp diff --git a/src/msw/dde.cpp b/src/msw/dde.cpp index ce2f37211b..f11a849208 100644 --- a/src/msw/dde.cpp +++ b/src/msw/dde.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 01/02/97 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -580,7 +579,7 @@ wxDDEConnection::DoExecute(const void *data, size_t size, wxIPCFormat format) if ( conv ) { const char * const text = (const char *)data; - const size_t len = size/sizeof(char); + const size_t len = size; realSize = conv->ToWChar(NULL, 0, text, len); if ( realSize == wxCONV_FAILED ) @@ -627,7 +626,7 @@ wxDDEConnection::DoExecute(const void *data, size_t size, wxIPCFormat format) if ( realSize == wxCONV_FAILED ) return false; - realData = (LPBYTE)buffer.GetWriteBuf(realSize*sizeof(char)); + realData = (LPBYTE)buffer.GetWriteBuf(realSize); if ( !realData ) return false;