Fixed pf_client_load_channels

This commit is contained in:
Armin Novak 2022-07-06 11:29:48 +02:00 committed by akallabeth
parent 23dd484824
commit 360c4f8188

View File

@ -363,7 +363,7 @@ static BOOL pf_client_load_channels(freerdp* instance)
{
CHANNEL_DEF* channels = (CHANNEL_DEF*)freerdp_settings_get_pointer_array_writable(
settings, FreeRDP_ChannelDefArray, 0);
size_t x, size = freerdp_settings_get_uint32(settings, FreeRDP_ChannelCount);
size_t x, size = freerdp_settings_get_uint32(settings, FreeRDP_ChannelDefArraySize);
WINPR_ASSERT(channels || (size == 0));