From 99f54153f507534c5ac03d39ba8c19ca62d6a6d7 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 6 Aug 2001 17:50:42 +0000 Subject: [PATCH] SetCommConfig has 3 arguments, not 2. --- dlls/kernel/comm.c | 5 +++-- dlls/kernel/kernel32.spec | 2 +- include/winbase.h | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dlls/kernel/comm.c b/dlls/kernel/comm.c index e0a74cd6b00..a960fdbc9f4 100644 --- a/dlls/kernel/comm.c +++ b/dlls/kernel/comm.c @@ -1824,8 +1824,9 @@ BOOL WINAPI GetCommConfig( * True on success, false if the handle was bad is not a communications device. */ BOOL WINAPI SetCommConfig( - HANDLE hFile, /* [in] The communications device. */ - LPCOMMCONFIG lpCommConfig) /* [in] The desired configuration. */ + HANDLE hFile, /* [in] The communications device. */ + LPCOMMCONFIG lpCommConfig, /* [in] The desired configuration. */ + DWORD dwSize) /* [in] size of the lpCommConfig struct */ { TRACE("(%x %p)\n",hFile,lpCommConfig); return SetCommState(hFile,&lpCommConfig->dcb); diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index d693cb36f19..45f2c546b19 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -660,7 +660,7 @@ debug_channels (comm debugstr dll int resource stress thunk toolhelp win32) @ stdcall SearchPathA(str str str long ptr ptr) SearchPathA @ stdcall SearchPathW(wstr wstr wstr long ptr ptr) SearchPathW @ stdcall SetCommBreak(long) SetCommBreak -@ stdcall SetCommConfig(long ptr) SetCommConfig +@ stdcall SetCommConfig(long ptr long) SetCommConfig @ stdcall SetCommMask(long ptr) SetCommMask @ stdcall SetCommState(long ptr) SetCommState @ stdcall SetCommTimeouts(long ptr) SetCommTimeouts diff --git a/include/winbase.h b/include/winbase.h index e1a2b9e393b..9a73b6d286c 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1546,7 +1546,7 @@ BOOL WINAPI RevertToSelf(void); DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*); DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*); #define SearchPath WINELIB_NAME_AW(SearchPath) -BOOL WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG); +BOOL WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD); BOOL WINAPI SetCommBreak(HANDLE); BOOL WINAPI SetCommMask(HANDLE,DWORD); BOOL WINAPI SetCommState(HANDLE,LPDCB);