Author: hpoussin Date: Tue Jul 18 15:55:40 2006 New Revision: 23136
URL: http://svn.reactos.org/svn/reactos?rev=23136&view=rev Log: Correctly return information to caller
Modified: trunk/reactos/drivers/base/serial/devctrl.c
Modified: trunk/reactos/drivers/base/serial/devctrl.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/base/serial/devctrl... ============================================================================== --- trunk/reactos/drivers/base/serial/devctrl.c (original) +++ trunk/reactos/drivers/base/serial/devctrl.c Tue Jul 18 15:55:40 2006 @@ -349,6 +349,7 @@ { pConfigSize = (PULONG)BufferOut; *pConfigSize = 0; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break; @@ -409,6 +410,7 @@ *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 @@ { pMCR = (PULONG)BufferOut; *pMCR = DeviceExtension->MCR; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break; @@ -459,6 +462,7 @@ { pMSR = (PULONG)BufferOut; *pMSR = DeviceExtension->MSR; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break; @@ -500,8 +504,8 @@ { KeSynchronizeExecution(DeviceExtension->Interrupt, (PKSYNCHRONIZE_ROUTINE)SerialGetPerfStats, Irp); - Status = STATUS_SUCCESS; Information = sizeof(SERIALPERF_STATS); + Status = STATUS_SUCCESS; } break; } @@ -513,6 +517,7 @@ else { *(PSERIAL_TIMEOUTS)BufferOut = DeviceExtension->SerialTimeOuts; + Information = sizeof(SERIAL_TIMEOUTS); Status = STATUS_SUCCESS; } break; @@ -527,6 +532,7 @@ { pWaitMask = (PULONG)BufferOut; *pWaitMask = DeviceExtension->WaitMask; + Information = sizeof(ULONG); Status = STATUS_SUCCESS; } break;