Author: gedmurphy
Date: Thu Jun 22 00:46:37 2006
New Revision: 22489
URL:
http://svn.reactos.ru/svn/reactos?rev=22489&view=rev
Log:
load correct entry from registry
Modified:
trunk/reactos/dll/cpl/timedate/timedate.c
Modified: trunk/reactos/dll/cpl/timedate/timedate.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/timedate.c…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/timedate.c (original)
+++ trunk/reactos/dll/cpl/timedate/timedate.c Thu Jun 22 00:46:37 2006
@@ -962,7 +962,7 @@
SendMessage(hList,
CB_SETCURSEL,
- --Default,
+ --Default, /* reg entries count from 1 */
0);
RegCloseKey(hKey);
@@ -987,7 +987,8 @@
0,
0);
- _itow(Sel, szSel, 10);
+ /* reg entries count from 1 */
+ _itow(++Sel, szSel, 10);
Ret = RegOpenKeyExW(HKEY_LOCAL_MACHINE,
L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DateTime\\Servers",