Jacek Caban : conhost: Improve get_output_info debug traces.

Alexandre Julliard julliard at winehq.org
Wed Dec 16 15:53:58 CST 2020


Module: wine
Branch: master
Commit: ef876fc54e207344b5809f40a59e3d5d610a6fda
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ef876fc54e207344b5809f40a59e3d5d610a6fda

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Dec 16 22:18:11 2020 +0100

conhost: Improve get_output_info debug traces.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/conhost/conhost.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index 0548fcaafd3..4b156f21ea3 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -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;
 }
 




More information about the wine-cvs mailing list