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
commit 3fa3772038
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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