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
d25a2679
Commit
d25a2679
authored
Jul 09, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Use IOCTL_CONDRV_GET_OUTPUT_INFO in GetLargestConsoleWindowSize.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2789787f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
console.c
dlls/kernelbase/console.c
+7
-8
No files found.
dlls/kernelbase/console.c
View file @
d25a2679
...
...
@@ -159,18 +159,17 @@ static void fill_console_output( HANDLE handle, int i, int j, int len, CHAR_INFO
/* helper function for GetLargestConsoleWindowSize */
static
COORD
get_largest_console_window_size
(
HANDLE
handle
)
{
struct
condrv_output_info
info
;
COORD
c
=
{
0
,
0
};
SERVER_START_REQ
(
get_console_output_info
)
if
(
!
DeviceIoControl
(
handle
,
IOCTL_CONDRV_GET_OUTPUT_INFO
,
NULL
,
0
,
&
info
,
sizeof
(
info
),
NULL
,
NULL
)
)
{
req
->
handle
=
console_handle_unmap
(
handle
);
if
(
!
wine_server_call_err
(
req
))
{
c
.
X
=
reply
->
max_width
;
c
.
Y
=
reply
->
max_height
;
}
SetLastError
(
ERROR_INVALID_HANDLE
);
return
c
;
}
SERVER_END_REQ
;
c
.
X
=
info
.
max_width
;
c
.
Y
=
info
.
max_height
;
TRACE
(
"(%p), returning %dx%d
\n
"
,
handle
,
c
.
X
,
c
.
Y
);
return
c
;
}
...
...
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