remove my changes to Elronds patch. RtlNtStatusToDosError does the job for us.
authorGed Murphy <gedmurphy@reactos.org>
Sun, 27 Nov 2005 12:28:45 +0000 (12:28 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Sun, 27 Nov 2005 12:28:45 +0000 (12:28 +0000)
svn path=/trunk/; revision=19682

reactos/lib/iphlpapi/ifenum_reactos.c

index 31a674a..7d783f4 100644 (file)
@@ -863,11 +863,8 @@ NTSTATUS addIPAddress( IPAddr Address, IPMask Mask, DWORD IfIndex,
       DPRINT1("addIPAddress for if %d returning 0x%lx\n", IfIndex, status);
   }
 
-  switch( status ) {
-      case STATUS_SUCCESS: return ERROR_SUCCESS;
-      case STATUS_DEVICE_DOES_NOT_EXIST: return ERROR_DEV_NOT_EXIST;
-      default: return status;
-  }
+  return status;
+
 }
 
 NTSTATUS deleteIpAddress( ULONG NteContext ) 
@@ -897,9 +894,5 @@ NTSTATUS deleteIpAddress( ULONG NteContext )
       DPRINT1("deleteIpAddress(%lu) returning 0x%lx\n", NteContext, status);
   }
 
-
-  if( NT_SUCCESS(status) ) 
-         return ERROR_SUCCESS;
-  else 
-         return ERROR_GEN_FAILURE;
+  return status;
 }