[USETUP] -Fix setting the language id when compiling for a single language. CORE...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 9 Dec 2016 18:30:50 +0000 (18:30 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 9 Dec 2016 18:30:50 +0000 (18:30 +0000)
svn path=/trunk/; revision=73441

reactos/base/setup/usetup/interface/usetup.c

index 9850a44..f9df8fd 100644 (file)
@@ -662,7 +662,10 @@ LanguagePage(PINPUT_RECORD Ir)
     /* If there's just a single language in the list skip
      * the language selection process altogether! */
     if (GenericListHasSingleEntry(LanguageList))
     /* If there's just a single language in the list skip
      * the language selection process altogether! */
     if (GenericListHasSingleEntry(LanguageList))
+    {
+        LanguageId = (LANGID)(wcstol(SelectedLanguageId, NULL, 16) & 0xFFFF);
         return INTRO_PAGE;
         return INTRO_PAGE;
+    }
 
     DrawGenericList(LanguageList,
                     2,
 
     DrawGenericList(LanguageList,
                     2,