Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cd6b8cad
Commit
cd6b8cad
authored
Jun 19, 2001
by
Patrik Stridvall
Committed by
Alexandre Julliard
Jun 19, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GetCommConfig number of arguments.
parent
a3fd0c95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
comm.c
dlls/kernel/comm.c
+7
-4
kernel32.spec
dlls/kernel/kernel32.spec
+1
-1
winbase.h
include/winbase.h
+1
-1
No files found.
dlls/kernel/comm.c
View file @
cd6b8cad
...
...
@@ -3109,7 +3109,7 @@ BOOL WINAPI CommConfigDialogW(
}
/***********************************************************************
* GetCommConfig (KERNEL32.
283
)
* GetCommConfig (KERNEL32.
@
)
*
* Fill in the COMMCONFIG structure for the comm port hFile
*
...
...
@@ -3126,12 +3126,10 @@ BOOL WINAPI CommConfigDialogW(
*/
BOOL
WINAPI
GetCommConfig
(
HANDLE
hFile
,
/* [in] The communications device. */
LPCOMMCONFIG
lpCommConfig
)
/* [out] The communications configuration of the device (if it fits). */
#if 0 /* FIXME: Why is this "commented" out? */
LPCOMMCONFIG
lpCommConfig
,
/* [out] The communications configuration of the device (if it fits). */
LPDWORD
lpdwSize
)
/* [in/out] Initially the size of the configuration buffer/structure,
afterwards the number of bytes copied to the buffer or
the needed size of the buffer. */
#endif
{
BOOL
r
;
...
...
@@ -3140,6 +3138,11 @@ BOOL WINAPI GetCommConfig(
if
(
lpCommConfig
==
NULL
)
return
FALSE
;
r
=
*
lpdwSize
<
sizeof
(
COMMCONFIG
);
*
lpdwSize
=
sizeof
(
COMMCONFIG
);
if
(
!
r
)
return
FALSE
;
lpCommConfig
->
dwSize
=
sizeof
(
COMMCONFIG
);
lpCommConfig
->
wVersion
=
1
;
lpCommConfig
->
wReserved
=
0
;
...
...
dlls/kernel/kernel32.spec
View file @
cd6b8cad
...
...
@@ -324,7 +324,7 @@ debug_channels (comm debugstr dll int resource stress thunk toolhelp win32)
@ stdcall GetBinaryTypeA(ptr ptr) GetBinaryTypeA
@ stdcall GetBinaryTypeW(ptr ptr) GetBinaryTypeW
@ stdcall GetCPInfo(long ptr) GetCPInfo
@ stdcall GetCommConfig(long ptr) GetCommConfig
@ stdcall GetCommConfig(long ptr
long
) GetCommConfig
@ stdcall GetCommMask(long ptr) GetCommMask
@ stdcall GetCommModemStatus(long ptr) GetCommModemStatus
@ stdcall GetCommProperties(long ptr) GetCommProperties
...
...
include/winbase.h
View file @
cd6b8cad
...
...
@@ -1333,7 +1333,7 @@ BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
VOID
WINAPI
FreeLibraryAndExitThread
(
HINSTANCE
,
DWORD
);
PVOID
WINAPI
FreeSid
(
PSID
);
UINT
WINAPI
GetACP
(
void
);
BOOL
WINAPI
GetCommConfig
(
HANDLE
,
LPCOMMCONFIG
);
BOOL
WINAPI
GetCommConfig
(
HANDLE
,
LPCOMMCONFIG
,
LPDWORD
);
BOOL
WINAPI
GetCommMask
(
HANDLE
,
LPDWORD
);
BOOL
WINAPI
GetCommModemStatus
(
HANDLE
,
LPDWORD
);
BOOL
WINAPI
GetCommProperties
(
HANDLE
,
LPCOMMPROP
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment