[server,win] fix undeclared identifier #9900

This commit is contained in:
akallabeth 2024-02-26 08:36:07 +01:00 committed by akallabeth
parent e21afefb86
commit 67f1376b52
1 changed files with 2 additions and 1 deletions

View File

@ -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++)