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
db886f09
Commit
db886f09
authored
Jul 23, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Use IOCTL_CONDRV_WRITE_OUTPUT in WriteConsoleOutputCharacterW.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
30453f0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
console.c
dlls/kernelbase/console.c
+11
-11
No files found.
dlls/kernelbase/console.c
View file @
db886f09
...
@@ -1600,6 +1600,8 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterA( HANDLE handle, LPCST
...
@@ -1600,6 +1600,8 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterA( HANDLE handle, LPCST
BOOL
WINAPI
DECLSPEC_HOTPATCH
WriteConsoleOutputCharacterW
(
HANDLE
handle
,
LPCWSTR
str
,
DWORD
length
,
BOOL
WINAPI
DECLSPEC_HOTPATCH
WriteConsoleOutputCharacterW
(
HANDLE
handle
,
LPCWSTR
str
,
DWORD
length
,
COORD
coord
,
DWORD
*
written
)
COORD
coord
,
DWORD
*
written
)
{
{
struct
condrv_write_output_params
*
params
;
size_t
size
;
BOOL
ret
;
BOOL
ret
;
TRACE
(
"(%p,%s,%d,%dx%d,%p)
\n
"
,
handle
,
debugstr_wn
(
str
,
length
),
length
,
coord
.
X
,
coord
.
Y
,
written
);
TRACE
(
"(%p,%s,%d,%dx%d,%p)
\n
"
,
handle
,
debugstr_wn
(
str
,
length
),
length
,
coord
.
X
,
coord
.
Y
,
written
);
...
@@ -1611,16 +1613,14 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterW( HANDLE handle, LPCWS
...
@@ -1611,16 +1613,14 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterW( HANDLE handle, LPCWS
}
}
*
written
=
0
;
*
written
=
0
;
SERVER_START_REQ
(
write_console_output
)
size
=
sizeof
(
*
params
)
+
length
*
sizeof
(
WCHAR
);
{
if
(
!
(
params
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
return
FALSE
;
req
->
handle
=
console_handle_unmap
(
handle
);
params
->
mode
=
CHAR_INFO_MODE_TEXT
;
req
->
x
=
coord
.
X
;
params
->
x
=
coord
.
X
;
req
->
y
=
coord
.
Y
;
params
->
y
=
coord
.
Y
;
req
->
mode
=
CHAR_INFO_MODE_TEXT
;
params
->
width
=
0
;
req
->
wrap
=
TRUE
;
memcpy
(
params
+
1
,
str
,
length
*
sizeof
(
*
str
)
);
wine_server_add_data
(
req
,
str
,
length
*
sizeof
(
WCHAR
)
);
ret
=
console_ioctl
(
handle
,
IOCTL_CONDRV_WRITE_OUTPUT
,
params
,
size
,
written
,
sizeof
(
*
written
),
NULL
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
*
written
=
reply
->
written
;
HeapFree
(
GetProcessHeap
(),
0
,
params
);
}
SERVER_END_REQ
;
return
ret
;
return
ret
;
}
}
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