Merge pull request #10577 from akallabeth/scale-desktop

[client,common] properly abort on invalid scale-desktop
This commit is contained in:
akallabeth
2024-09-09 12:58:26 +02:00
committed by GitHub

View File

@@ -5356,7 +5356,7 @@ static int freerdp_client_settings_parse_command_line_arguments_int(
LONGLONG val = 0;
if (!value_to_int(arg->Value, &val, 100, 500))
return FALSE;
return fail_at(arg, COMMAND_LINE_ERROR);
if (!freerdp_settings_set_uint32(settings, FreeRDP_DesktopScaleFactor, (UINT32)val))
return fail_at(arg, COMMAND_LINE_ERROR);