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
e3caa9c4
Commit
e3caa9c4
authored
Jul 06, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement PeekConsoleInputW using IOCTL_CONDRV_PEEK.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
25f7aa52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
console.c
dlls/kernelbase/console.c
+5
-14
No files found.
dlls/kernelbase/console.c
View file @
e3caa9c4
...
...
@@ -790,20 +790,11 @@ BOOL WINAPI DECLSPEC_HOTPATCH PeekConsoleInputA( HANDLE handle, INPUT_RECORD *bu
BOOL
WINAPI
DECLSPEC_HOTPATCH
PeekConsoleInputW
(
HANDLE
handle
,
INPUT_RECORD
*
buffer
,
DWORD
length
,
DWORD
*
count
)
{
BOOL
ret
;
SERVER_START_REQ
(
read_console_input
)
{
req
->
handle
=
console_handle_unmap
(
handle
);
req
->
flush
=
FALSE
;
wine_server_set_reply
(
req
,
buffer
,
length
*
sizeof
(
INPUT_RECORD
)
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
{
if
(
count
)
*
count
=
length
?
reply
->
read
:
0
;
}
}
SERVER_END_REQ
;
return
ret
;
DWORD
read
;
if
(
!
DeviceIoControl
(
handle
,
IOCTL_CONDRV_PEEK
,
NULL
,
0
,
buffer
,
length
*
sizeof
(
*
buffer
),
&
read
,
NULL
))
return
FALSE
;
if
(
count
)
*
count
=
read
/
sizeof
(
*
buffer
);
return
TRUE
;
}
...
...
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