From 39bee577004051bed5ddbb60625f36cd19dda4b3 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Wed, 11 Oct 2023 21:36:15 +0000 Subject: [PATCH] Enhanced debuggery. --- src/protocols/rdp/plugins/generate-entry-wrappers.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/protocols/rdp/plugins/generate-entry-wrappers.pl b/src/protocols/rdp/plugins/generate-entry-wrappers.pl index f3fc003880..ecdd891dbf 100755 --- a/src/protocols/rdp/plugins/generate-entry-wrappers.pl +++ b/src/protocols/rdp/plugins/generate-entry-wrappers.pl @@ -49,11 +49,13 @@ #include "plugins/channels.h" #include #include +#include EOF # Generate wrapper definitions for PVIRTUALCHANNELENTRYEX entry point variant print OUTPUT <<"EOF" for (1..$GUAC_RDP_MAX_CHANNELS); static BOOL guac_rdp_plugin_entry_ex_wrapper$_(PCHANNEL_ENTRY_POINTS_EX entry_points_ex, PVOID init_handle) { + fprintf(stderr, \"Calling guac_rdp_plugin_entry_ex_wrapper $_ with (%p, %p)\\n\", (void*) entry_points_ex, (void*) init_handle); return guac_rdp_wrapped_entry_ex[$_ - 1](entry_points_ex, init_handle); } EOF @@ -61,6 +63,7 @@ # Generate wrapper definitions for PVIRTUALCHANNELENTRY entry point variant print OUTPUT <<"EOF" for (1..$GUAC_RDP_MAX_CHANNELS); static BOOL guac_rdp_plugin_entry_wrapper$_(PCHANNEL_ENTRY_POINTS entry_points) { + fprintf(stderr, \"Calling guac_rdp_plugin_entry_wrapper $_ with (%p)\\n\", (void*) entry_points); return guac_rdp_wrapped_entry[$_ - 1](entry_points); } EOF