Author: akhaldi
Date: Tue May 3 21:49:08 2016
New Revision: 71254
URL:
http://svn.reactos.org/svn/reactos?rev=71254&view=rev
Log:
[0.4.1] Apply the usetup path localization fix by Wim Hueskes. CORE-9656
Modified:
branches/ros-branch-0_4_1/reactos/base/setup/usetup/interface/usetup.c
Modified: branches/ros-branch-0_4_1/reactos/base/setup/usetup/interface/usetup.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-branch-0_4_1/reactos/base/s…
==============================================================================
--- branches/ros-branch-0_4_1/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1]
(original)
+++ branches/ros-branch-0_4_1/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1]
Tue May 3 21:49:08 2016
@@ -629,6 +629,10 @@
*
* Next pages: IntroPage, QuitPage
*
+ * SIDEEFFECTS
+ * Init SelectedLanguageId
+ * Init LanguageId
+ *
* RETURNS
* Number of the next page.
*/
@@ -772,6 +776,8 @@
* Init RequiredPartitionDiskSpace
* Init IsUnattendedSetup
* If unattended, init *List and sets the Codepage
+ * If unattended, init SelectedLanguageId
+ * If unattended, init LanguageId
*
* RETURNS
* Number of the next page.
@@ -906,10 +912,10 @@
/* new part */
wcscpy(SelectedLanguageId,LocaleID);
+ LanguageId = (LANGID)(wcstol(SelectedLanguageId, NULL, 16) & 0xFFFF);
/* first we hack LanguageList */
ListEntry = GetFirstListEntry(LanguageList);
-
while (ListEntry != NULL)
{
if (!wcsicmp(LocaleID, GetListEntryUserData(ListEntry)))