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
8993f572
Commit
8993f572
authored
Jan 11, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Reset console attribute upon exit in unix mode.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
0e6b21ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
conhost.c
programs/conhost/conhost.c
+14
-2
No files found.
programs/conhost/conhost.c
View file @
8993f572
...
...
@@ -2859,9 +2859,18 @@ static int main_loop( struct console *console, HANDLE signal )
return
0
;
}
static
void
teardown
(
struct
console
*
console
)
{
if
(
console
->
is_unix
)
{
set_tty_attr
(
console
,
empty_char_info
.
attr
);
tty_flush
(
console
);
}
}
int
__cdecl
wmain
(
int
argc
,
WCHAR
*
argv
[])
{
int
headless
=
0
,
i
,
width
=
0
,
height
=
0
;
int
headless
=
0
,
i
,
width
=
0
,
height
=
0
,
ret
;
HANDLE
signal
=
NULL
;
WCHAR
*
end
;
...
...
@@ -2954,5 +2963,8 @@ int __cdecl wmain(int argc, WCHAR *argv[])
ShowWindow
(
console
.
win
,
(
si
.
dwFlags
&
STARTF_USESHOWWINDOW
)
?
si
.
wShowWindow
:
SW_SHOW
);
}
return
main_loop
(
&
console
,
signal
);
ret
=
main_loop
(
&
console
,
signal
);
teardown
(
&
console
);
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