]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dde.cpp
Moved the cleanup code to an EVT_WINDOW_DESTROY handler.
[wxWidgets.git] / src / msw / dde.cpp
index 327e727944fc77173ca66062a82d975f433418c6..6a7e4d547c09c042250a0b5cfeb58038e96d75ea 100644 (file)
@@ -734,7 +734,7 @@ _DDECallback(WORD wType,
                                            0);
                     DdeFreeDataHandle(hData);
                     if ( connection->OnExecute(connection->m_topicName,
-                                               (wxChar *) connection->m_bufPtr,
+                                               connection->m_bufPtr,
                                                (int)len,
                                                (wxIPCFormat) wFmt) )
                     {
@@ -874,7 +874,7 @@ _DDECallback(WORD wType,
                     DdeFreeDataHandle(hData);
                     if ( connection->OnAdvise(connection->m_topicName,
                                               item_name,
-                                              (wxChar *) connection->m_bufPtr,
+                                              connection->m_bufPtr,
                                               (int)len,
                                               (wxIPCFormat) wFmt) )
                     {