[ros-diffs] [gedmurphy] 22489: load correct entry from registry

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Wed Jun 21 22:46:37 CEST 2006


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?rev=22489&r1=22488&r2=22489&view=diff
==============================================================================
--- 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",




More information about the Ros-diffs mailing list