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
547855e6
Commit
547855e6
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 GetConsoleCursorInfo.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d25a2679
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
console.c
dlls/kernelbase/console.c
+7
-11
No files found.
dlls/kernelbase/console.c
View file @
547855e6
...
...
@@ -541,26 +541,22 @@ UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP(void)
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
GetConsoleCursorInfo
(
HANDLE
handle
,
CONSOLE_CURSOR_INFO
*
info
)
{
BOOL
ret
;
struct
condrv_output_info
condrv_info
;
SERVER_START_REQ
(
get_console_output_info
)
if
(
!
DeviceIoControl
(
handle
,
IOCTL_CONDRV_GET_OUTPUT_INFO
,
NULL
,
0
,
&
condrv_info
,
sizeof
(
condrv_info
),
NULL
,
NULL
)
)
{
req
->
handle
=
console_handle_unmap
(
handle
);
ret
=
!
wine_server_call_err
(
req
);
if
(
ret
&&
info
)
{
info
->
dwSize
=
reply
->
cursor_size
;
info
->
bVisible
=
reply
->
cursor_visible
;
}
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
SERVER_END_REQ
;
if
(
!
ret
)
return
FALSE
;
if
(
!
info
)
{
SetLastError
(
ERROR_INVALID_ACCESS
);
return
FALSE
;
}
info
->
dwSize
=
condrv_info
.
cursor_size
;
info
->
bVisible
=
condrv_info
.
cursor_visible
;
TRACE
(
"(%p) returning (%d,%d)
\n
"
,
handle
,
info
->
dwSize
,
info
->
bVisible
);
return
TRUE
;
}
...
...
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