Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
48a23dbd
Commit
48a23dbd
authored
Jul 13, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Use IOCTL_CONDRV_GET_MODE in GetConsoleMode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
409160bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
console.c
dlls/kernel32/tests/console.c
+1
-1
console.c
dlls/kernelbase/console.c
+1
-12
No files found.
dlls/kernel32/tests/console.c
View file @
48a23dbd
...
...
@@ -822,7 +822,7 @@ static void testScreenBuffer(HANDLE hConOut)
ret
=
WriteConsoleA
(
hFileOutWT
,
test_str1
,
lstrlenA
(
test_str1
),
&
len
,
NULL
);
error
=
GetLastError
();
ok
(
!
ret
,
"Shouldn't succeed
\n
"
);
todo_wine
ok
(
error
==
ERROR_INVALID_HANDLE
||
error
==
ERROR_INVALID_FUNCTION
,
ok
(
error
==
ERROR_INVALID_HANDLE
||
error
==
ERROR_INVALID_FUNCTION
,
"GetLastError: got %u
\n
"
,
error
);
CloseHandle
(
hFileOutRW
);
...
...
dlls/kernelbase/console.c
View file @
48a23dbd
...
...
@@ -610,18 +610,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleInputExeNameW( DWORD len, LPWSTR buffer
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
GetConsoleMode
(
HANDLE
handle
,
DWORD
*
mode
)
{
BOOL
ret
;
SERVER_START_REQ
(
get_console_mode
)
{
req
->
handle
=
console_handle_unmap
(
handle
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
{
if
(
mode
)
*
mode
=
reply
->
mode
;
}
}
SERVER_END_REQ
;
return
ret
;
return
console_ioctl
(
handle
,
IOCTL_CONDRV_GET_MODE
,
NULL
,
0
,
mode
,
sizeof
(
*
mode
),
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