- Accept STATUS_SUCCESS also as done in config.c
authorCameron Gutman <aicommander@gmail.com>
Wed, 3 Sep 2008 23:37:09 +0000 (23:37 +0000)
committerCameron Gutman <aicommander@gmail.com>
Wed, 3 Sep 2008 23:37:09 +0000 (23:37 +0000)
svn path=/branches/aicom-network-fixes/; revision=35919

drivers/network/ndis/ndis/miniport.c
drivers/network/ndis/ndis/protocol.c

index 5927af0..8537cd7 100644 (file)
@@ -1623,7 +1623,7 @@ NdisIAddDevice(
 
   Status = IoGetDeviceProperty(PhysicalDeviceObject, DevicePropertyDriverKeyName,
                                0, NULL, &DriverKeyLength);
-  if (Status != STATUS_BUFFER_TOO_SMALL && Status != STATUS_BUFFER_OVERFLOW)
+  if (Status != STATUS_BUFFER_TOO_SMALL && Status != STATUS_BUFFER_OVERFLOW && Status != STATUS_SUCCESS)
     {
       NDIS_DbgPrint(DEBUG_MINIPORT, ("Can't get miniport driver key length.\n"));
       return Status;
index 59ad6f2..e2ac8bb 100644 (file)
@@ -783,7 +783,7 @@ NdisRegisterProtocol(
     RtlInitUnicodeString(&ValueName, L"Bind");
 
     NtStatus = ZwQueryValueKey(DriverKeyHandle, &ValueName, KeyValuePartialInformation, NULL, 0, &ResultLength);
-    if(NtStatus != STATUS_BUFFER_OVERFLOW && NtStatus != STATUS_BUFFER_TOO_SMALL)
+    if(NtStatus != STATUS_BUFFER_OVERFLOW && NtStatus != STATUS_BUFFER_TOO_SMALL && NtStatus != STATUS_SUCCESS)
       {
         NDIS_DbgPrint(MID_TRACE, ("Unable to query the Bind value for size\n"));
         ZwClose(DriverKeyHandle);