]> git.saurik.com Git - wxWidgets.git/commitdiff
pass correct data size to DdeClientTransaction() in Unicode build
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Feb 2008 23:27:00 +0000 (23:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Feb 2008 23:27:00 +0000 (23:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dde.cpp

index 5b542f7e9b0ef772f0e5ccf982b918df654ddce3..550a8fc1cdd316045c2922d9b0ad6188d0f21498 100644 (file)
@@ -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 )
     {