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
ef876fc5
Commit
ef876fc5
authored
Dec 16, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Improve get_output_info debug traces.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e62d7d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
conhost.c
programs/conhost/conhost.c
+6
-2
No files found.
programs/conhost/conhost.c
View file @
ef876fc5
...
...
@@ -1702,8 +1702,6 @@ static NTSTATUS get_output_info( struct screen_buffer *screen_buffer, size_t *ou
{
struct
condrv_output_info
*
info
;
TRACE
(
"%p
\n
"
,
screen_buffer
);
*
out_size
=
min
(
*
out_size
,
sizeof
(
*
info
)
+
screen_buffer
->
font
.
face_len
);
if
(
!
(
info
=
alloc_ioctl_buffer
(
*
out_size
)))
return
STATUS_NO_MEMORY
;
...
...
@@ -1727,6 +1725,12 @@ static NTSTATUS get_output_info( struct screen_buffer *screen_buffer, size_t *ou
info
->
font_pitch_family
=
screen_buffer
->
font
.
pitch_family
;
memcpy
(
info
->
color_map
,
screen_buffer
->
color_map
,
sizeof
(
info
->
color_map
)
);
if
(
*
out_size
>
sizeof
(
*
info
))
memcpy
(
info
+
1
,
screen_buffer
->
font
.
face_name
,
*
out_size
-
sizeof
(
*
info
)
);
TRACE
(
"%p cursor_size=%u cursor_visible=%x cursor=(%u,%u) width=%u height=%u win=%s attr=%x popup_attr=%x"
" font_width=%u font_height=%u %s
\n
"
,
screen_buffer
,
info
->
cursor_size
,
info
->
cursor_visible
,
info
->
cursor_x
,
info
->
cursor_y
,
info
->
width
,
info
->
height
,
wine_dbgstr_rect
(
&
screen_buffer
->
win
),
info
->
attr
,
info
->
popup_attr
,
info
->
font_width
,
info
->
font_height
,
debugstr_wn
(
(
const
WCHAR
*
)(
info
+
1
),
(
*
out_size
-
sizeof
(
*
info
))
/
sizeof
(
WCHAR
)
)
);
return
STATUS_SUCCESS
;
}
...
...
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