mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[IPHLPAPI]
- Fix some code left over from a previous attempt svn path=/trunk/; revision=47294
This commit is contained in:
parent
763cb9ff23
commit
c7ae2ad589
1 changed files with 2 additions and 6 deletions
|
@ -30,19 +30,15 @@ DWORD getDhcpInfoForAdapter(DWORD AdapterIndex,
|
||||||
DWORD Status, Version = 0;
|
DWORD Status, Version = 0;
|
||||||
|
|
||||||
Status = DhcpCApiInitialize(&Version);
|
Status = DhcpCApiInitialize(&Version);
|
||||||
if (Status == ERROR_NOT_READY)
|
if (Status != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
/* The DHCP server isn't running yet */
|
/* We assume that the DHCP service isn't running yet */
|
||||||
*DhcpEnabled = FALSE;
|
*DhcpEnabled = FALSE;
|
||||||
*DhcpServer = htonl(INADDR_NONE);
|
*DhcpServer = htonl(INADDR_NONE);
|
||||||
*LeaseObtained = 0;
|
*LeaseObtained = 0;
|
||||||
*LeaseExpires = 0;
|
*LeaseExpires = 0;
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
else if (Status != ERROR_SUCCESS)
|
|
||||||
{
|
|
||||||
return Status;
|
|
||||||
}
|
|
||||||
|
|
||||||
Status = DhcpRosGetAdapterInfo(AdapterIndex, DhcpEnabled, DhcpServer,
|
Status = DhcpRosGetAdapterInfo(AdapterIndex, DhcpEnabled, DhcpServer,
|
||||||
LeaseObtained, LeaseExpires);
|
LeaseObtained, LeaseExpires);
|
||||||
|
|
Loading…
Reference in a new issue