From 9e8da0db2a35dc1691f308480ea56905668a23c3 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Mon, 27 Oct 2008 07:56:33 +0000 Subject: [PATCH] set correct timezone in 2nd stage patch by hto See issue #3822 for more details. svn path=/trunk/; revision=37013 --- reactos/dll/win32/syssetup/wizard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/syssetup/wizard.c b/reactos/dll/win32/syssetup/wizard.c index 9f3be0eb77a..52d4257d458 100644 --- a/reactos/dll/win32/syssetup/wizard.c +++ b/reactos/dll/win32/syssetup/wizard.c @@ -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;