Blame patches/xwin/winconfig.patch

Lucio Andrés Illanes Albornoz 15b8a3
--- xorg-server-1.20.1.orig/hw/xwin/winconfig.c	2018-08-07 18:31:04.000000000 +0200
Lucio Andrés Illanes Albornoz 15b8a3
+++ xorg-server-1.20.1/hw/xwin/winconfig.c	2018-08-26 16:32:01.065234453 +0200
Lucio Andrés Illanes Albornoz 15b8a3
@@ -301,8 +301,8 @@
Lucio Andrés Illanes Albornoz 15b8a3
             strcpy(regpath, regtempl);
Lucio Andrés Illanes Albornoz 15b8a3
             strcat(regpath, layoutName);
Lucio Andrés Illanes Albornoz 15b8a3
 
Lucio Andrés Illanes Albornoz 15b8a3
-            if (!RegOpenKey(HKEY_LOCAL_MACHINE, regpath, &regkey))
Lucio Andrés Illanes Albornoz 15b8a3
-                RegQueryValueEx(regkey, "Layout Text", 0, NULL,
Lucio Andrés Illanes Albornoz 15b8a3
+            if (!RegOpenKeyA(HKEY_LOCAL_MACHINE, regpath, &regkey))
Lucio Andrés Illanes Albornoz 15b8a3
+                RegQueryValueExA(regkey, "Layout Text", 0, NULL,
Lucio Andrés Illanes Albornoz 15b8a3
                                 layoutFriendlyName, &namesize);
Lucio Andrés Illanes Albornoz 15b8a3
 
Lucio Andrés Illanes Albornoz 15b8a3
             /* Close registry key */