Author: cgutman
Date: Fri May 21 22:17:35 2010
New Revision: 47294
URL:
http://svn.reactos.org/svn/reactos?rev=47294&view=rev
Log:
[IPHLPAPI]
- Fix some code left over from a previous attempt
Modified:
trunk/reactos/dll/win32/iphlpapi/dhcp_reactos.c
Modified: trunk/reactos/dll/win32/iphlpapi/dhcp_reactos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/dhcp_re…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/dhcp_reactos.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/dhcp_reactos.c [iso-8859-1] Fri May 21 22:17:35 2010
@@ -30,18 +30,14 @@
DWORD Status, Version = 0;
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;
*DhcpServer = htonl(INADDR_NONE);
*LeaseObtained = 0;
*LeaseExpires = 0;
return ERROR_SUCCESS;
- }
- else if (Status != ERROR_SUCCESS)
- {
- return Status;
}
Status = DhcpRosGetAdapterInfo(AdapterIndex, DhcpEnabled, DhcpServer,