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
07194e92
Commit
07194e92
authored
Jul 10, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Use IOCTL_CONDRV_SET_OUTPUT_INFO in SetConsoleWindowInfo.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2efb498a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
console.c
dlls/kernelbase/console.c
+6
-13
No files found.
dlls/kernelbase/console.c
View file @
07194e92
...
...
@@ -1406,8 +1406,8 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleTitleW( LPCWSTR title )
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
SetConsoleWindowInfo
(
HANDLE
handle
,
BOOL
absolute
,
SMALL_RECT
*
window
)
{
struct
condrv_output_info_params
params
=
{
SET_CONSOLE_OUTPUT_INFO_DISPLAY_WINDOW
};
SMALL_RECT
rect
=
*
window
;
BOOL
ret
;
TRACE
(
"(%p,%d,(%d,%d-%d,%d))
\n
"
,
handle
,
absolute
,
rect
.
Left
,
rect
.
Top
,
rect
.
Right
,
rect
.
Bottom
);
...
...
@@ -1421,19 +1421,12 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleWindowInfo( HANDLE handle, BOOL absolute
rect
.
Right
+=
info
.
srWindow
.
Right
;
rect
.
Bottom
+=
info
.
srWindow
.
Bottom
;
}
SERVER_START_REQ
(
set_console_output_info
)
{
req
->
handle
=
console_handle_unmap
(
handle
);
req
->
win_left
=
rect
.
Left
;
req
->
win_top
=
rect
.
Top
;
req
->
win_right
=
rect
.
Right
;
req
->
win_bottom
=
rect
.
Bottom
;
req
->
mask
=
SET_CONSOLE_OUTPUT_INFO_DISPLAY_WINDOW
;
ret
=
!
wine_server_call_err
(
req
);
}
SERVER_END_REQ
;
return
ret
;
params
.
info
.
win_left
=
rect
.
Left
;
params
.
info
.
win_top
=
rect
.
Top
;
params
.
info
.
win_right
=
rect
.
Right
;
params
.
info
.
win_bottom
=
rect
.
Bottom
;
return
console_ioctl
(
handle
,
IOCTL_CONDRV_SET_OUTPUT_INFO
,
&
params
,
sizeof
(
params
),
NULL
,
0
,
NULL
);
}
...
...
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