Removed function pointer casts

This commit is contained in:
akallabeth 2022-03-24 11:06:06 +01:00 committed by akallabeth
parent 770bc14d18
commit 54938efc77
2 changed files with 4 additions and 4 deletions

View File

@ -237,8 +237,8 @@ static void mf_peer_context_free(freerdp_peer* client, mfPeerContext* context)
static BOOL mf_peer_init(freerdp_peer* client)
{
client->ContextSize = sizeof(mfPeerContext);
client->ContextNew = (psPeerContextNew)mf_peer_context_new;
client->ContextFree = (psPeerContextFree)mf_peer_context_free;
client->ContextNew = mf_peer_context_new;
client->ContextFree = mf_peer_context_free;
if (!freerdp_peer_context_new(client))
return FALSE;

View File

@ -82,8 +82,8 @@ static void wf_peer_context_free(freerdp_peer* client, wfPeerContext* context)
static BOOL wf_peer_init(freerdp_peer* client)
{
client->ContextSize = sizeof(wfPeerContext);
client->ContextNew = (psPeerContextNew)wf_peer_context_new;
client->ContextFree = (psPeerContextFree)wf_peer_context_free;
client->ContextNew = wf_peer_context_new;
client->ContextFree = wf_peer_context_free;
return freerdp_peer_context_new(client);
}