mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:43:01 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i=1;;i++)
|
for(i=0;;i++)
|
||||||
{
|
{
|
||||||
TCHAR pszNewPath[MAX_PATH];
|
TCHAR pszNewPath[MAX_PATH];
|
||||||
ret = RegEnumKeyEx(hKey,i,tpszName,&dwNameLen,NULL,NULL,NULL,NULL);
|
ret = RegEnumKeyEx(hKey,i,tpszName,&dwNameLen,NULL,NULL,NULL,NULL);
|
||||||
|
|
|
@ -53,7 +53,8 @@ typedef struct _TCPIP_PROPERTIES_DATA {
|
||||||
DWORD OldDns2;
|
DWORD OldDns2;
|
||||||
} TCPIP_PROPERTIES_DATA, *PTCPIP_PROPERTIES_DATA;
|
} 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,
|
DWORD APIENTRY DhcpNotifyConfigChange(LPWSTR ServerName, LPWSTR AdapterName,
|
||||||
BOOL NewIpAddress, DWORD IpIndex,
|
BOOL NewIpAddress, DWORD IpIndex,
|
||||||
DWORD IpAddress, DWORD SubnetMask,
|
DWORD IpAddress, DWORD SubnetMask,
|
||||||
|
@ -542,8 +543,7 @@ DisplayTCPIPProperties(HWND hParent, IP_ADAPTER_INFO *pInfo)
|
||||||
psh.ppsp = psp;
|
psh.ppsp = psp;
|
||||||
psh.pfnCallback = NULL;
|
psh.pfnCallback = NULL;
|
||||||
|
|
||||||
InitPropSheetPage(&psp[0], IDD_TCPIPPROPERTIES, TCPIPPropertyPageProc);
|
InitPropSheetPage(&psp[0], IDD_TCPIPPROPERTIES, TCPIPPropertyPageProc, (LPARAM) &DlgData);
|
||||||
psp[0].lParam = (LPARAM) &DlgData;
|
|
||||||
|
|
||||||
if (PropertySheetW(&psh) == -1)
|
if (PropertySheetW(&psh) == -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue