[client,common] properly abort on invalid scale-desktop

This commit is contained in:
akallabeth
2024-09-09 12:37:07 +02:00
parent 9738fc40f3
commit 306af4070c

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);