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
5f4f0fa0
Commit
5f4f0fa0
authored
Nov 11, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Constify some variables.
parent
864db966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
comm16.c
dlls/user32/comm16.c
+4
-4
No files found.
dlls/user32/comm16.c
View file @
5f4f0fa0
...
...
@@ -140,7 +140,7 @@ static struct DosDeviceStruct *GetDeviceStruct(int index)
return
NULL
;
}
static
int
GetCommPort_ov
(
LPOVERLAPPED
ov
,
int
write
)
static
int
GetCommPort_ov
(
const
OVERLAPPED
*
ov
,
int
write
)
{
int
x
;
...
...
@@ -161,13 +161,13 @@ static int WinError(void)
}
}
static
unsigned
comm_inbuf
(
struct
DosDeviceStruct
*
ptr
)
static
unsigned
comm_inbuf
(
const
struct
DosDeviceStruct
*
ptr
)
{
return
((
ptr
->
ibuf_tail
>
ptr
->
ibuf_head
)
?
ptr
->
ibuf_size
:
0
)
+
ptr
->
ibuf_head
-
ptr
->
ibuf_tail
;
}
static
unsigned
comm_outbuf
(
struct
DosDeviceStruct
*
ptr
)
static
unsigned
comm_outbuf
(
const
struct
DosDeviceStruct
*
ptr
)
{
return
((
ptr
->
obuf_tail
>
ptr
->
obuf_head
)
?
ptr
->
obuf_size
:
0
)
+
ptr
->
obuf_head
-
ptr
->
obuf_tail
;
...
...
@@ -360,7 +360,7 @@ static void comm_waitwrite(struct DosDeviceStruct *ptr)
/*****************************************************************************
* COMM16_DCBtoDCB16 (Internal)
*/
static
INT16
COMM16_DCBtoDCB16
(
LPDCB
lpdcb
,
LPDCB16
lpdcb16
)
static
INT16
COMM16_DCBtoDCB16
(
const
DCB
*
lpdcb
,
LPDCB16
lpdcb16
)
{
if
(
lpdcb
->
BaudRate
<
0x10000
)
lpdcb16
->
BaudRate
=
lpdcb
->
BaudRate
;
...
...
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