mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
set correct timezone in 2nd stage
patch by hto See issue #3822 for more details. svn path=/trunk/; revision=37013
This commit is contained in:
parent
47e8c2cf0b
commit
9e8da0db2a
1 changed files with 3 additions and 3 deletions
|
@ -1137,7 +1137,7 @@ GetTimeZoneListIndex(LPDWORD lpIndex)
|
|||
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 @@ GetTimeZoneListIndex(LPDWORD lpIndex)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
iLanguageID = _ttoi(szLanguageIdString);
|
||||
iLanguageID = _tcstoul(szLanguageIdString, NULL, 16);
|
||||
RegCloseKey(hKey);
|
||||
|
||||
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
|
||||
|
@ -1205,7 +1205,7 @@ GetTimeZoneListIndex(LPDWORD lpIndex)
|
|||
while (*Ptr != 0)
|
||||
{
|
||||
Length = _tcslen(Ptr);
|
||||
if (_ttoi(Ptr) == iLanguageID)
|
||||
if (_tcstoul(Ptr, NULL, 16) == iLanguageID)
|
||||
bFound = TRUE;
|
||||
|
||||
Ptr = Ptr + Length + 1;
|
||||
|
|
Loading…
Reference in a new issue