[PATCH] [NtDll]: serial timeout regression

Eric Pouech eric.pouech at wanadoo.fr
Fri May 12 15:05:48 CDT 2006


- this fixes a regression introduced when moving code
  from kernl32 to ntdll
- thou shalt not copy & paste while writing code

A+
---

 dlls/ntdll/serial.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/serial.c b/dlls/ntdll/serial.c
index 7405c07..20ba0aa 100644
--- a/dlls/ntdll/serial.c
+++ b/dlls/ntdll/serial.c
@@ -970,7 +970,7 @@ NTSTATUS COMM_DeviceIoControl(HANDLE hDe
     case IOCTL_SERIAL_GET_TIMEOUTS:
         if (lpOutBuffer && nOutBufferSize == sizeof(SERIAL_TIMEOUTS))
         {
-            if (!(status = get_timeouts(hDevice, (SERIAL_TIMEOUTS*)lpInBuffer)))
+            if (!(status = get_timeouts(hDevice, (SERIAL_TIMEOUTS*)lpOutBuffer)))
                 sz = sizeof(SERIAL_TIMEOUTS);
         }
         else




More information about the wine-patches mailing list