[gnome-remote-desktop] session-rdp: Correctly set the OsMinorType



commit 67c229de692f348d1f4c94c1611664e0a0b690ad
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Fri Aug 6 08:03:47 2021 +0200

    session-rdp: Correctly set the OsMinorType
    
    Instead of setting the OsMinorType, the OsMinorType was not set, but
    the OsMajorType was overwritten with an invalid value.
    
    Fix this by replacing the second OsMajorType with OsMinorType.

 src/grd-session-rdp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index 6f62e7a..5c127a1 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -1562,7 +1562,7 @@ init_rdp_session (GrdSessionRdp *session_rdp,
   rdp_settings->NlaSecurity = TRUE;
 
   rdp_settings->OsMajorType = OSMAJORTYPE_UNIX;
-  rdp_settings->OsMajorType = OSMINORTYPE_PSEUDO_XSERVER;
+  rdp_settings->OsMinorType = OSMINORTYPE_PSEUDO_XSERVER;
   rdp_settings->ColorDepth = 32;
   rdp_settings->HasExtendedMouseEvent = TRUE;
   rdp_settings->HasHorizontalWheel = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]