core: Fix return type for TargetNetPorts array

This commit is contained in:
Martin Fleisz 2022-07-14 09:30:27 +02:00 committed by David Fort
parent f44dbecbfd
commit 55c71dd650

View File

@ -1471,7 +1471,7 @@ void* freerdp_settings_get_pointer_array_writable(const rdpSettings* settings, s
max = freerdp_settings_get_uint32(settings, FreeRDP_TargetNetAddressCount);
if (offset >= max)
goto fail;
return settings->TargetNetPorts[offset];
return &settings->TargetNetPorts[offset];
case FreeRDP_ClientTimeZone:
max = 1;
if (offset >= max)