PATCH: SetCommConfig wrong number of args
Marcus Meissner
Marcus.Meissner at caldera.de
Mon Aug 6 05:28:55 CDT 2001
Hi,
Ciao, Marcus
Changelog:
SetCommConfig has 3 arguments, not 2.
Index: include/winbase.h
===================================================================
RCS file: /home/wine/wine/include/winbase.h,v
retrieving revision 1.111
diff -u -r1.111 winbase.h
--- include/winbase.h 2001/07/26 21:43:56 1.111
+++ include/winbase.h 2001/08/06 09:29:01
@@ -1546,7 +1546,7 @@
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);
Index: dlls/kernel/comm.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/comm.c,v
retrieving revision 1.37
diff -u -r1.37 comm.c
--- dlls/kernel/comm.c 2001/07/26 21:43:56 1.37
+++ dlls/kernel/comm.c 2001/08/06 09:29:01
@@ -1824,8 +1824,9 @@
* 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);
Index: dlls/kernel/kernel32.spec
===================================================================
RCS file: /home/wine/wine/dlls/kernel/kernel32.spec,v
retrieving revision 1.38
diff -u -r1.38 kernel32.spec
--- dlls/kernel/kernel32.spec 2001/07/10 19:16:49 1.38
+++ dlls/kernel/kernel32.spec 2001/08/06 09:29:02
@@ -660,7 +660,7 @@
@ 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
More information about the wine-patches
mailing list