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
574ced0d
Commit
574ced0d
authored
Dec 02, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix handling of STATUS_ALERTED in get_next_console_request.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42f90354
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
console.c
dlls/kernel32/tests/console.c
+14
-0
console.c
server/console.c
+1
-1
No files found.
dlls/kernel32/tests/console.c
View file @
574ced0d
...
...
@@ -268,6 +268,8 @@ static void testWriteSimple(HANDLE hCon)
const
char
*
mytest
=
"abcdefg"
;
int
mylen
=
strlen
(
mytest
);
COORD
c
=
{
0
,
0
};
DWORD
len
;
BOOL
ret
;
simple_write_console
(
hCon
,
mytest
);
...
...
@@ -278,6 +280,18 @@ static void testWriteSimple(HANDLE hCon)
okCURSOR
(
hCon
,
c
);
okCHAR
(
hCon
,
c
,
' '
,
DEFAULT_ATTRIB
);
ret
=
WriteFile
(
hCon
,
mytest
,
mylen
,
&
len
,
NULL
);
ok
(
ret
,
"WriteFile failed: %u
\n
"
,
GetLastError
());
ok
(
len
==
mylen
,
"unexpected len = %u
\n
"
,
len
);
for
(
c
.
X
=
0
;
c
.
X
<
2
*
mylen
;
c
.
X
++
)
{
okCHAR
(
hCon
,
c
,
mytest
[
c
.
X
%
mylen
],
TEST_ATTRIB
);
}
okCURSOR
(
hCon
,
c
);
okCHAR
(
hCon
,
c
,
' '
,
DEFAULT_ATTRIB
);
}
static
void
testWriteNotWrappedNotProcessed
(
HANDLE
hCon
,
COORD
sbSize
)
...
...
server/console.c
View file @
574ced0d
...
...
@@ -1520,7 +1520,6 @@ DECL_HANDLER(get_next_console_request)
if
((
iosb
->
out_data
=
memdup
(
get_req_data
(),
iosb
->
out_size
)))
{
iosb
->
result
=
iosb
->
out_size
;
status
=
STATUS_ALERTED
;
}
else
if
(
!
status
)
{
...
...
@@ -1528,6 +1527,7 @@ DECL_HANDLER(get_next_console_request)
iosb
->
out_size
=
0
;
}
}
if
(
iosb
->
result
)
status
=
STATUS_ALERTED
;
}
else
{
...
...
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