From 5bb618330dcba1fdc221bb31f5e99665787eb83e Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 7 Feb 2024 06:36:46 +0100 Subject: [PATCH] [client,win] DesktopOrientaion is of type UINT16 Fixes #9841, use proper getter for settings key --- client/Windows/wf_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Windows/wf_event.c b/client/Windows/wf_event.c index 98c5568af..cb3891f62 100644 --- a/client/Windows/wf_event.c +++ b/client/Windows/wf_event.c @@ -347,7 +347,7 @@ static void wf_send_resize(wfContext* wfc) layout.Width = targetWidth; layout.Height = targetHeight; layout.Orientation = - freerdp_settings_get_uint32(settings, FreeRDP_DesktopOrientation); + freerdp_settings_get_uint16(settings, FreeRDP_DesktopOrientation); layout.DesktopScaleFactor = freerdp_settings_get_uint32(settings, FreeRDP_DesktopScaleFactor); layout.DeviceScaleFactor =