Author: janderwald Date: Sat Jan 2 02:22:38 2010 New Revision: 44867
URL: http://svn.reactos.org/svn/reactos?rev=44867&view=rev Log: [KS] - Return correct error code
Modified: trunk/reactos/drivers/ksfilter/ks/connectivity.c
Modified: trunk/reactos/drivers/ksfilter/ks/connectivity.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/connect... ============================================================================== --- trunk/reactos/drivers/ksfilter/ks/connectivity.c [iso-8859-1] (original) +++ trunk/reactos/drivers/ksfilter/ks/connectivity.c [iso-8859-1] Sat Jan 2 02:22:38 2010 @@ -511,19 +511,18 @@ break; }
+ 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: