From e40621ab4434fe0d948a6e1566e4744df65ecefc Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sat, 2 Jan 2010 01:22:38 +0000 Subject: [PATCH] [KS] - Return correct error code svn path=/trunk/; revision=44867 --- reactos/drivers/ksfilter/ks/connectivity.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/ksfilter/ks/connectivity.c b/reactos/drivers/ksfilter/ks/connectivity.c index 3e1e296070e..ae9200b518b 100644 --- a/reactos/drivers/ksfilter/ks/connectivity.c +++ b/reactos/drivers/ksfilter/ks/connectivity.c @@ -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: -- 2.17.1