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
300a01f4
Commit
300a01f4
authored
Jul 28, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Use IOCTL_CONDRV_READ_OUTPUT in ReadConsoleOutputCharacterW.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
44052219
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
console.c
dlls/kernelbase/console.c
+9
-12
No files found.
dlls/kernelbase/console.c
View file @
300a01f4
...
...
@@ -99,6 +99,7 @@ static BOOL console_ioctl( HANDLE handle, DWORD code, void *in_buff, DWORD in_co
status
=
STATUS_INVALID_HANDLE
;
break
;
}
if
(
read
)
*
read
=
0
;
return
set_ntstatus
(
status
);
}
...
...
@@ -849,6 +850,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleOutputCharacterA( HANDLE handle, LPSTR
BOOL
WINAPI
DECLSPEC_HOTPATCH
ReadConsoleOutputCharacterW
(
HANDLE
handle
,
LPWSTR
buffer
,
DWORD
length
,
COORD
coord
,
DWORD
*
count
)
{
struct
condrv_output_params
params
;
BOOL
ret
;
TRACE
(
"(%p,%p,%d,%dx%d,%p)
\n
"
,
handle
,
buffer
,
length
,
coord
.
X
,
coord
.
Y
,
count
);
...
...
@@ -859,18 +861,13 @@ BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleOutputCharacterW( HANDLE handle, LPWSTR
return
FALSE
;
}
*
count
=
0
;
SERVER_START_REQ
(
read_console_output
)
{
req
->
handle
=
console_handle_unmap
(
handle
);
req
->
x
=
coord
.
X
;
req
->
y
=
coord
.
Y
;
req
->
mode
=
CHAR_INFO_MODE_TEXT
;
req
->
wrap
=
TRUE
;
wine_server_set_reply
(
req
,
buffer
,
length
*
sizeof
(
WCHAR
)
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
*
count
=
wine_server_reply_size
(
reply
)
/
sizeof
(
WCHAR
);
}
SERVER_END_REQ
;
params
.
mode
=
CHAR_INFO_MODE_TEXT
;
params
.
x
=
coord
.
X
;
params
.
y
=
coord
.
Y
;
params
.
width
=
0
;
ret
=
console_ioctl
(
handle
,
IOCTL_CONDRV_READ_OUTPUT
,
&
params
,
sizeof
(
params
),
buffer
,
length
*
sizeof
(
*
buffer
),
count
);
*
count
/=
sizeof
(
*
buffer
);
return
ret
;
}
...
...
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