Skip to content

Commit

Permalink
Fixed function pointer type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
akallabeth committed Jun 23, 2022
1 parent 1626530 commit b542598
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions server/Windows/wf_peer.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <freerdp/config.h>

#include <winpr/assert.h>
#include <winpr/tchar.h>
#include <winpr/stream.h>
#include <winpr/windows.h>
Expand All @@ -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;

Expand All @@ -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)
Expand Down

0 comments on commit b542598

Please sign in to comment.