From 67f1376b52e16b071d522d335dc1d0d731282068 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 26 Feb 2024 08:36:07 +0100 Subject: [PATCH] [server,win] fix undeclared identifier #9900 --- server/Windows/wf_rdpsnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/Windows/wf_rdpsnd.c b/server/Windows/wf_rdpsnd.c index b313c3508..cb961e550 100644 --- a/server/Windows/wf_rdpsnd.c +++ b/server/Windows/wf_rdpsnd.c @@ -49,7 +49,8 @@ static void wf_peer_rdpsnd_activated(RdpsndServerContext* context) wfi->agreed_format = NULL; WLog_DBG(TAG, "Client supports the following %d formats:", context->num_client_formats); - for (size_t i = 0; i < context->num_client_formats; i++) + size_t i = 0; + for (; i < context->num_client_formats; i++) { // TODO: improve the way we agree on a format for (size_t j = 0; j < context->num_server_formats; j++)