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
d2e0d5e8
Commit
d2e0d5e8
authored
Oct 28, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Oct 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't send a CTRL_C_EVENT signal to console if we are on Win9x and
console signal handler is set to NULL.
parent
89a49182
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
console.c
dlls/kernel/tests/console.c
+5
-1
No files found.
dlls/kernel/tests/console.c
View file @
d2e0d5e8
...
...
@@ -537,10 +537,14 @@ static void testCtrlHandler(void)
#endif
ok
(
WaitForSingleObject
(
mch_event
,
3000
)
==
WAIT_OBJECT_0
,
"event sending didn't work
\n
"
);
CloseHandle
(
mch_event
);
/* Turning off ctrl-c handling doesn't work on win9x such way ... */
ok
(
SetConsoleCtrlHandler
(
NULL
,
TRUE
),
"Couldn't turn off ctrl-c handling
\n
"
);
mch_event
=
CreateEventA
(
NULL
,
TRUE
,
FALSE
,
NULL
);
mch_count
=
0
;
ok
(
GenerateConsoleCtrlEvent
(
CTRL_C_EVENT
,
0
),
"Couldn't send ctrl-c event
\n
"
);
if
(
!
(
GetVersion
()
&
0x80000000
))
/* ... and next line leads to an unhandled exception on 9x. Avoid it on 9x. */
ok
(
GenerateConsoleCtrlEvent
(
CTRL_C_EVENT
,
0
),
"Couldn't send ctrl-c event
\n
"
);
ok
(
WaitForSingleObject
(
mch_event
,
3000
)
==
WAIT_TIMEOUT
&&
mch_count
==
0
,
"Event shouldn't have been sent
\n
"
);
CloseHandle
(
mch_event
);
ok
(
SetConsoleCtrlHandler
(
mch
,
FALSE
),
"Couldn't remove handler
\n
"
);
...
...
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