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
b7f617c9
Commit
b7f617c9
authored
Dec 20, 2007
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Dec 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Invalidate local copy of console input event handle while reallocating console.
parent
99a193ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
console.c
dlls/kernel32/console.c
+9
-3
No files found.
dlls/kernel32/console.c
View file @
b7f617c9
...
...
@@ -67,6 +67,9 @@ static CRITICAL_SECTION CONSOLE_CritSect = { &critsect_debug, -1, 0, 0, 0, 0 };
static
const
WCHAR
coninW
[]
=
{
'C'
,
'O'
,
'N'
,
'I'
,
'N'
,
'$'
,
0
};
static
const
WCHAR
conoutW
[]
=
{
'C'
,
'O'
,
'N'
,
'O'
,
'U'
,
'T'
,
'$'
,
0
};
/* FIXME: this is not thread safe */
static
HANDLE
console_wait_event
;
/* map input records to ASCII */
static
void
input_records_WtoA
(
INPUT_RECORD
*
buffer
,
int
count
)
{
...
...
@@ -378,9 +381,6 @@ BOOL WINAPI CloseConsoleHandle(HANDLE handle)
*/
HANDLE
WINAPI
GetConsoleInputWaitHandle
(
void
)
{
static
HANDLE
console_wait_event
;
/* FIXME: this is not thread safe */
if
(
!
console_wait_event
)
{
SERVER_START_REQ
(
get_console_wait_event
)
...
...
@@ -1131,6 +1131,9 @@ BOOL WINAPI FreeConsole(VOID)
{
BOOL
ret
;
/* invalidate local copy of input event handle */
console_wait_event
=
0
;
SERVER_START_REQ
(
free_console
)
{
ret
=
!
wine_server_call_err
(
req
);
...
...
@@ -1230,6 +1233,9 @@ BOOL WINAPI AllocConsole(void)
/* happens when we're running on a Unix console */
if
(
handle_in
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
handle_in
);
/* invalidate local copy of input event handle */
console_wait_event
=
0
;
GetStartupInfoA
(
&
siCurrent
);
memset
(
&
siConsole
,
0
,
sizeof
(
siConsole
));
...
...
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