diff --git a/server/Mac/mf_peer.c b/server/Mac/mf_peer.c index c31f3662b..f02e4d0ae 100644 --- a/server/Mac/mf_peer.c +++ b/server/Mac/mf_peer.c @@ -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; diff --git a/server/Windows/wf_peer.c b/server/Windows/wf_peer.c index 36e5bb08e..8a454c83a 100644 --- a/server/Windows/wf_peer.c +++ b/server/Windows/wf_peer.c @@ -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); }