From c8b38fb66e3dbef0fd8e349d44475721c821612c Mon Sep 17 00:00:00 2001 From: kubistika Date: Tue, 4 Jun 2019 17:33:48 +0300 Subject: [PATCH] server/proxy: Fix bitmap update crash when target is win7 --- server/proxy/pf_client.c | 2 ++ server/proxy/pf_server.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/server/proxy/pf_client.c b/server/proxy/pf_client.c index df464d8..b2daf90 100644 --- a/server/proxy/pf_client.c +++ b/server/proxy/pf_client.c @@ -98,6 +98,8 @@ static BOOL pf_client_pre_connect(freerdp* instance) * Only override it if you plan to implement custom order * callbacks or deactiveate certain features. */ + ZeroMemory(instance->settings->OrderSupport, 32); + /** * Register the channel listeners. * They are required to set up / tear down channels if they are loaded. diff --git a/server/proxy/pf_server.c b/server/proxy/pf_server.c index 9be46a9..f2da565 100644 --- a/server/proxy/pf_server.c +++ b/server/proxy/pf_server.c @@ -239,6 +239,9 @@ static DWORD WINAPI pf_server_handle_client(LPVOID arg) goto out_free_peer; } + + ZeroMemory(client->settings->OrderSupport, 32); + client->update->autoCalculateBitmapData = FALSE; pdata->ps = ps; /* keep configuration in proxyData */ pdata->config = client->ContextExtra; -- 2.7.4