[KS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 2 Jan 2010 01:22:38 +0000 (01:22 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 2 Jan 2010 01:22:38 +0000 (01:22 +0000)
- Return correct error code

svn path=/trunk/; revision=44867

reactos/drivers/ksfilter/ks/connectivity.c

index 3e1e296..ae9200b 100644 (file)
@@ -511,19 +511,18 @@ KsPinPropertyHandler(
                 break;
             }
 
-            Irp->IoStatus.Information = KeyInfo->DataLength + sizeof(WCHAR);
 
+            Irp->IoStatus.Information = KeyInfo->DataLength + sizeof(WCHAR);
 
             if (KeyInfo->DataLength + sizeof(WCHAR) > IoStack->Parameters.DeviceIoControl.OutputBufferLength)
             {
-                Status = STATUS_MORE_ENTRIES;
+                Status = STATUS_BUFFER_OVERFLOW;
                 ExFreePool(KeyInfo);
                 break;
             }
 
             RtlMoveMemory(Irp->UserBuffer, &KeyInfo->Data, KeyInfo->DataLength);
             ((LPWSTR)Irp->UserBuffer)[KeyInfo->DataLength / sizeof(WCHAR)] = L'\0';
-            Irp->IoStatus.Information = KeyInfo->DataLength + sizeof(WCHAR);
             ExFreePool(KeyInfo);
             break;
         case KSPROPERTY_PIN_PROPOSEDATAFORMAT: