[IPHLPAPI]
authorCameron Gutman <aicommander@gmail.com>
Fri, 21 May 2010 20:17:35 +0000 (20:17 +0000)
committerCameron Gutman <aicommander@gmail.com>
Fri, 21 May 2010 20:17:35 +0000 (20:17 +0000)
- Fix some code left over from a previous attempt

svn path=/trunk/; revision=47294

reactos/dll/win32/iphlpapi/dhcp_reactos.c

index 9e8086f..3364e3c 100644 (file)
@@ -30,19 +30,15 @@ DWORD getDhcpInfoForAdapter(DWORD AdapterIndex,
     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,
                                    LeaseObtained, LeaseExpires);