pass correct data size to DdeClientTransaction() in Unicode build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -636,16 +636,16 @@ wxDDEConnection::DoExecute(const void *data, size_t size, wxIPCFormat format)
|
|||||||
|
|
||||||
DWORD result;
|
DWORD result;
|
||||||
bool ok = DdeClientTransaction(realData,
|
bool ok = DdeClientTransaction(realData,
|
||||||
realSize,
|
realSize*sizeof(wxChar),
|
||||||
GetHConv(),
|
GetHConv(),
|
||||||
NULL,
|
NULL,
|
||||||
// MSDN: if the transaction specified by
|
// MSDN: if the transaction specified by
|
||||||
// the wType parameter does not pass data
|
// the wType parameter does not pass data
|
||||||
// or is XTYP_EXECUTE, wFmt should be zero.
|
// or is XTYP_EXECUTE, wFmt should be zero.
|
||||||
0,
|
0,
|
||||||
XTYP_EXECUTE,
|
XTYP_EXECUTE,
|
||||||
DDE_TIMEOUT,
|
DDE_TIMEOUT,
|
||||||
&result) != 0;
|
&result) != 0;
|
||||||
|
|
||||||
if ( !ok )
|
if ( !ok )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user