Author: gedmurphy
Date: Wed May 30 11:11:22 2007
New Revision: 26939
URL:
http://svn.reactos.org/svn/reactos?rev=26939&view=rev
Log:
- knock loop back to 0 as it's a shared function. Thanks to Colin for noticing this.
- fix a prototype and call it correctly
Modified:
trunk/reactos/dll/cpl/ncpa/ncpa.c
trunk/reactos/dll/cpl/ncpa/tcpip_properties.c
Modified: trunk/reactos/dll/cpl/ncpa/ncpa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/ncpa.c?rev=26…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/ncpa.c (original)
+++ trunk/reactos/dll/cpl/ncpa/ncpa.c Wed May 30 11:11:22 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);
Modified: trunk/reactos/dll/cpl/ncpa/tcpip_properties.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/tcpip_propert…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/tcpip_properties.c (original)
+++ trunk/reactos/dll/cpl/ncpa/tcpip_properties.c Wed May 30 11:11:22 2007
@@ -53,7 +53,8 @@
DWORD OldDns2;
} TCPIP_PROPERTIES_DATA, *PTCPIP_PROPERTIES_DATA;
-void InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc);
+void InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc, LPARAM lParam);
+
DWORD APIENTRY DhcpNotifyConfigChange(LPWSTR ServerName, LPWSTR AdapterName,
BOOL NewIpAddress, DWORD IpIndex,
DWORD IpAddress, DWORD SubnetMask,
@@ -542,8 +543,7 @@
psh.ppsp = psp;
psh.pfnCallback = NULL;
- InitPropSheetPage(&psp[0], IDD_TCPIPPROPERTIES, TCPIPPropertyPageProc);
- psp[0].lParam = (LPARAM) &DlgData;
+ InitPropSheetPage(&psp[0], IDD_TCPIPPROPERTIES, TCPIPPropertyPageProc, (LPARAM)
&DlgData);
if (PropertySheetW(&psh) == -1)
{