From f80b966b21b7bd1bc1aa69bdd0994ed53ef162c4 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Fri, 7 Oct 2022 20:12:47 +0800 Subject: [PATCH] Fix a DDE error on Windows (Bug #236) --- ChangeLog | 2 ++ src/myipc.cpp | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8d7376c..947d161 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ # Version number followed by the release date 1.3.1.0 + * Fix a DDE error on Windows (Bug #236) + * gdk_x11_get_server_time crashes when an invalid window is passed * Migrate to PCRE2 (Miriam Ruiz) 1.3.0.0 2020/08/15 diff --git a/src/myipc.cpp b/src/myipc.cpp index adf84e7..c5930e3 100755 --- a/src/myipc.cpp +++ b/src/myipc.cpp @@ -140,8 +140,16 @@ IPCData *MyServerConnection::OnRequest { if ( size == NULL ) return NULL; + +#if wxUSE_DDE_FOR_IPC + // wxDDEConnection::Request validates the return data + const static char data[] = "Data"; + *size = 1; + return data; +#else *size = 0; return NULL; +#endif } bool MyServerConnection::OnStartAdvise ( const wxString& WXUNUSED ( topic ),