Author: hpoussin
Date: Thu Feb 15 21:26:51 2007
New Revision: 25808
URL:
http://svn.reactos.org/svn/reactos?rev=25808&view=rev
Log:
Start registry keys enumeration at 0 instead of 1. This fixes enumeration of all protocols
(which start at 0).
Another side effect is that this fixes enumeration of network adapters (which, due to
another bug, also start at 0 instead of 1 as in MS Windows).
By the way, the correct way of enumerating adapters and protocols is to use the SetupDi*
functions, which will potential fix other bugs.
Fixes bug 2034 in branch 0.3.1
Modified:
branches/ros-branch-0_3_1/reactos/dll/cpl/ncpa/ncpa.c
Modified: branches/ros-branch-0_3_1/reactos/dll/cpl/ncpa/ncpa.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-branch-0_3_1/reactos/dll/cp…
==============================================================================
--- branches/ros-branch-0_3_1/reactos/dll/cpl/ncpa/ncpa.c (original)
+++ branches/ros-branch-0_3_1/reactos/dll/cpl/ncpa/ncpa.c Thu Feb 15 21:26:51 2007
@@ -100,7 +100,7 @@
return;
}
- for(i=1;;i++)
+ for(i=0;;i++)
{
TCHAR pszNewPath[MAX_PATH];
ret = RegEnumKeyEx(hKey,i,tpszName,&dwNameLen,NULL,NULL,NULL,NULL);