From f0e080241fe72195f4500b280f62e3221a37dc5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 18 Jul 2006 11:55:40 +0000 Subject: [PATCH] Correctly return information to caller svn path=/trunk/; revision=23136 --- reactos/drivers/base/serial/devctrl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/base/serial/devctrl.c b/reactos/drivers/base/serial/devctrl.c index b4ca4322131..dd6be39709f 100644 --- a/reactos/drivers/base/serial/devctrl.c +++ b/reactos/drivers/base/serial/devctrl.c @@ -349,6 +349,7 @@ SerialDeviceControl( { pConfigSize = (PULONG)BufferOut; *pConfigSize = 0; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break; @@ -409,6 +410,7 @@ SerialDeviceControl( *pDtrRts |= SERIAL_DTR_STATE; if (DeviceExtension->MCR & SR_MCR_RTS) *pDtrRts |= SERIAL_RTS_STATE; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break; @@ -445,6 +447,7 @@ SerialDeviceControl( { pMCR = (PULONG)BufferOut; *pMCR = DeviceExtension->MCR; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break; @@ -459,6 +462,7 @@ SerialDeviceControl( { pMSR = (PULONG)BufferOut; *pMSR = DeviceExtension->MSR; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break; @@ -500,8 +504,8 @@ SerialDeviceControl( { KeSynchronizeExecution(DeviceExtension->Interrupt, (PKSYNCHRONIZE_ROUTINE)SerialGetPerfStats, Irp); - Status = STATUS_SUCCESS; Information = sizeof(SERIALPERF_STATS); + Status = STATUS_SUCCESS; } break; } @@ -513,6 +517,7 @@ SerialDeviceControl( else { *(PSERIAL_TIMEOUTS)BufferOut = DeviceExtension->SerialTimeOuts; + Information = sizeof(SERIAL_TIMEOUTS); Status = STATUS_SUCCESS; } break; @@ -527,6 +532,7 @@ SerialDeviceControl( { pWaitMask = (PULONG)BufferOut; *pWaitMask = DeviceExtension->WaitMask; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break;