Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e77873da
Commit
e77873da
authored
May 05, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Implement IOCTL_SERIAL_GET_WAIT_MASK as an ioctl on the server side.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b7b9c4ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
serial.c
dlls/ntdll/serial.c
+1
-9
serial.c
server/serial.c
+7
-0
trace.c
server/trace.c
+1
-0
No files found.
dlls/ntdll/serial.c
View file @
e77873da
...
...
@@ -1111,6 +1111,7 @@ static inline NTSTATUS io_control(HANDLE hDevice,
{
case
IOCTL_SERIAL_GET_TIMEOUTS
:
case
IOCTL_SERIAL_SET_TIMEOUTS
:
case
IOCTL_SERIAL_GET_WAIT_MASK
:
case
IOCTL_SERIAL_SET_WAIT_MASK
:
/* these are handled on the server side */
return
STATUS_NOT_SUPPORTED
;
...
...
@@ -1195,15 +1196,6 @@ static inline NTSTATUS io_control(HANDLE hDevice,
}
else
status
=
STATUS_INVALID_PARAMETER
;
break
;
case
IOCTL_SERIAL_GET_WAIT_MASK
:
if
(
lpOutBuffer
&&
nOutBufferSize
==
sizeof
(
DWORD
))
{
if
(
!
(
status
=
get_wait_mask
(
hDevice
,
lpOutBuffer
,
NULL
,
NULL
,
FALSE
)))
sz
=
sizeof
(
DWORD
);
}
else
status
=
STATUS_INVALID_PARAMETER
;
break
;
case
IOCTL_SERIAL_IMMEDIATE_CHAR
:
if
(
lpInBuffer
&&
nInBufferSize
==
sizeof
(
CHAR
))
status
=
xmit_immediate
(
hDevice
,
fd
,
lpInBuffer
);
...
...
server/serial.c
View file @
e77873da
...
...
@@ -220,6 +220,13 @@ static obj_handle_t serial_ioctl( struct fd *fd, ioctl_code_t code, struct async
else
set_error
(
STATUS_BUFFER_TOO_SMALL
);
return
0
;
case
IOCTL_SERIAL_GET_WAIT_MASK
:
if
(
get_reply_max_size
()
>=
sizeof
(
serial
->
eventmask
))
set_reply_data
(
&
serial
->
eventmask
,
sizeof
(
serial
->
eventmask
)
);
else
set_error
(
STATUS_BUFFER_TOO_SMALL
);
return
0
;
case
IOCTL_SERIAL_SET_WAIT_MASK
:
if
(
get_req_data_size
()
>=
sizeof
(
serial
->
eventmask
))
{
...
...
server/trace.c
View file @
e77873da
...
...
@@ -120,6 +120,7 @@ static void dump_ioctl_code( const char *prefix, const ioctl_code_t *code )
CASE
(
FSCTL_PIPE_PEEK
);
CASE
(
FSCTL_PIPE_WAIT
);
CASE
(
IOCTL_SERIAL_GET_TIMEOUTS
);
CASE
(
IOCTL_SERIAL_GET_WAIT_MASK
);
CASE
(
IOCTL_SERIAL_SET_TIMEOUTS
);
CASE
(
IOCTL_SERIAL_SET_WAIT_MASK
);
CASE
(
WS_SIO_ADDRESS_LIST_CHANGE
);
...
...
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