Fixed function pointer type mismatch

This commit is contained in:
akallabeth
2022-06-22 13:38:55 +02:00
committed by akallabeth
parent 1626530825
commit b542598834

View File

@@ -20,6 +20,7 @@
#include <freerdp/config.h>
#include <winpr/assert.h>
#include <winpr/tchar.h>
#include <winpr/stream.h>
#include <winpr/windows.h>
@@ -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)