[client] Fix writing incorrect type for integer values in RDP file

This commit is contained in:
Martin Fleisz 2025-03-07 09:46:54 +01:00
parent d5d9ea1b0c
commit 87af371f72

View File

@ -1573,7 +1573,7 @@ static SSIZE_T write_int_parameters(const rdpFile* file, char* buffer, size_t si
if (~cur->val)
{
const SSIZE_T res = freerdp_client_write_setting_to_buffer(
&buffer, &size, "%s:s:%" PRIu32, cur->key, cur->val);
&buffer, &size, "%s:i:%" PRIu32, cur->key, cur->val);
if (res < 0)
return res;
totalSize += res;