[Wine-devel] Hack for remserial (eterbug #553).

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Чт Сен 4 15:55:17 MSD 2008


----------- следующая часть -----------
From ca9f18f9e997a63af3df1d418f47b2489170fbd6 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Thu, 4 Sep 2008 15:48:55 +0400
Subject: [PATCH] Hack for remserial (eterbug #553).

---
 dlls/kernel32/comm.c |    4 +++-
 dlls/ntdll/serial.c  |    3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/comm.c b/dlls/kernel32/comm.c
index d83eacb..e814d23 100644
--- a/dlls/kernel32/comm.c
+++ b/dlls/kernel32/comm.c
@@ -612,7 +612,9 @@ BOOL WINAPI EscapeCommFunction(HANDLE handle, UINT func)
         SetLastError(ERROR_INVALID_PARAMETER);
         return FALSE;
     }
-    return DeviceIoControl(handle, ioc, NULL, 0, NULL, 0, NULL, NULL);
+    DeviceIoControl(handle, ioc, NULL, 0, NULL, 0, NULL, NULL);
+    /* HACK for remserial */
+    return TRUE;
 }
 
 /********************************************************************
diff --git a/dlls/ntdll/serial.c b/dlls/ntdll/serial.c
index 83f4a81..50772b6 100644
--- a/dlls/ntdll/serial.c
+++ b/dlls/ntdll/serial.c
@@ -315,7 +315,8 @@ static NTSTATUS get_modem_status(int fd, DWORD* lpModemStat)
         return STATUS_SUCCESS;
     }
     WARN("ioctl failed\n");
-    status = FILE_GetNtStatus();
+    /* HACK for remserial */
+    status = STATUS_SUCCESS;
 #endif
     return status;
 }
-- 
1.5.6.GIT



Подробная информация о списке рассылки Wine-devel