From b5425988344020e7e95604f56c329ec35fafb086 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 22 Jun 2022 13:38:55 +0200 Subject: [PATCH] Fixed function pointer type mismatch --- server/Windows/wf_peer.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server/Windows/wf_peer.c b/server/Windows/wf_peer.c index c9f539eb0..8603f2eac 100644 --- a/server/Windows/wf_peer.c +++ b/server/Windows/wf_peer.c @@ -20,6 +20,7 @@ #include +#include #include #include #include @@ -45,8 +46,11 @@ static DWORD WINAPI wf_peer_main_loop(LPVOID lpParam); -static BOOL wf_peer_context_new(freerdp_peer* client, wfPeerContext* context) +static BOOL wf_peer_context_new(freerdp_peer* client, rdpContext* ctx) { + wfPeerContext* context = (wfPeerContext*)ctx; + WINPR_ASSERT(context); + if (!(context->info = wf_info_get_instance())) return FALSE; @@ -65,8 +69,11 @@ static BOOL wf_peer_context_new(freerdp_peer* client, wfPeerContext* context) return TRUE; } -static void wf_peer_context_free(freerdp_peer* client, wfPeerContext* context) +static void wf_peer_context_free(freerdp_peer* client, rdpContext* ctx) { + wfPeerContext* context = (wfPeerContext*)ctx; + WINPR_ASSERT(context); + wf_info_peer_unregister(context->info, context); if (context->rdpsnd)