mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- knock loop back to 0 as it's a shared function. Thanks to Colin for noticing this.
- fix a prototype and call it correctly svn path=/trunk/; revision=26939
This commit is contained in:
parent
9c24c8e35e
commit
90342114af
2 changed files with 4 additions and 4 deletions
|
@ -100,7 +100,7 @@ EnumRegKeys(ENUMREGKEYCALLBACK *pCallback,PVOID pCookie,HKEY hBaseKey,TCHAR *tps
|
|||
return;
|
||||
}
|
||||
|
||||
for(i=1;;i++)
|
||||
for(i=0;;i++)
|
||||
{
|
||||
TCHAR pszNewPath[MAX_PATH];
|
||||
ret = RegEnumKeyEx(hKey,i,tpszName,&dwNameLen,NULL,NULL,NULL,NULL);
|
||||
|
|
|
@ -53,7 +53,8 @@ typedef struct _TCPIP_PROPERTIES_DATA {
|
|||
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 @@ DisplayTCPIPProperties(HWND hParent, IP_ADAPTER_INFO *pInfo)
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue