Author: cwittich
Date: Mon Oct 27 02:56:33 2008
New Revision: 37013
URL:
http://svn.reactos.org/svn/reactos?rev=37013&view=rev
Log:
set correct timezone in 2nd stage
patch by hto
See issue #3822 for more details.
Modified:
trunk/reactos/dll/win32/syssetup/wizard.c
Modified: trunk/reactos/dll/win32/syssetup/wizard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Mon Oct 27 02:56:33 2008
@@ -1137,7 +1137,7 @@
LPTSTR Ptr;
LPTSTR End;
BOOL bFound = FALSE;
- int iLanguageID;
+ unsigned long iLanguageID;
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
_T("SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"),
@@ -1158,7 +1158,7 @@
return FALSE;
}
- iLanguageID = _ttoi(szLanguageIdString);
+ iLanguageID = _tcstoul(szLanguageIdString, NULL, 16);
RegCloseKey(hKey);
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
@@ -1205,7 +1205,7 @@
while (*Ptr != 0)
{
Length = _tcslen(Ptr);
- if (_ttoi(Ptr) == iLanguageID)
+ if (_tcstoul(Ptr, NULL, 16) == iLanguageID)
bFound = TRUE;
Ptr = Ptr + Length + 1;