Correctly return information to caller

svn path=/trunk/; revision=23136
This commit is contained in:
Hervé Poussineau 2006-07-18 11:55:40 +00:00
parent 073eaa0b04
commit f0e080241f

View file

@ -349,6 +349,7 @@ SerialDeviceControl(
{ {
pConfigSize = (PULONG)BufferOut; pConfigSize = (PULONG)BufferOut;
*pConfigSize = 0; *pConfigSize = 0;
Information = sizeof(ULONG);
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
} }
break; break;
@ -409,6 +410,7 @@ SerialDeviceControl(
*pDtrRts |= SERIAL_DTR_STATE; *pDtrRts |= SERIAL_DTR_STATE;
if (DeviceExtension->MCR & SR_MCR_RTS) if (DeviceExtension->MCR & SR_MCR_RTS)
*pDtrRts |= SERIAL_RTS_STATE; *pDtrRts |= SERIAL_RTS_STATE;
Information = sizeof(ULONG);
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
} }
break; break;
@ -445,6 +447,7 @@ SerialDeviceControl(
{ {
pMCR = (PULONG)BufferOut; pMCR = (PULONG)BufferOut;
*pMCR = DeviceExtension->MCR; *pMCR = DeviceExtension->MCR;
Information = sizeof(ULONG);
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
} }
break; break;
@ -459,6 +462,7 @@ SerialDeviceControl(
{ {
pMSR = (PULONG)BufferOut; pMSR = (PULONG)BufferOut;
*pMSR = DeviceExtension->MSR; *pMSR = DeviceExtension->MSR;
Information = sizeof(ULONG);
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
} }
break; break;
@ -500,8 +504,8 @@ SerialDeviceControl(
{ {
KeSynchronizeExecution(DeviceExtension->Interrupt, KeSynchronizeExecution(DeviceExtension->Interrupt,
(PKSYNCHRONIZE_ROUTINE)SerialGetPerfStats, Irp); (PKSYNCHRONIZE_ROUTINE)SerialGetPerfStats, Irp);
Status = STATUS_SUCCESS;
Information = sizeof(SERIALPERF_STATS); Information = sizeof(SERIALPERF_STATS);
Status = STATUS_SUCCESS;
} }
break; break;
} }
@ -513,6 +517,7 @@ SerialDeviceControl(
else else
{ {
*(PSERIAL_TIMEOUTS)BufferOut = DeviceExtension->SerialTimeOuts; *(PSERIAL_TIMEOUTS)BufferOut = DeviceExtension->SerialTimeOuts;
Information = sizeof(SERIAL_TIMEOUTS);
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
} }
break; break;
@ -527,6 +532,7 @@ SerialDeviceControl(
{ {
pWaitMask = (PULONG)BufferOut; pWaitMask = (PULONG)BufferOut;
*pWaitMask = DeviceExtension->WaitMask; *pWaitMask = DeviceExtension->WaitMask;
Information = sizeof(ULONG);
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
} }
break; break;