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
4de19cff
Commit
4de19cff
authored
Jan 17, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Make the wrapper immune to Ctrl-C.
parent
7f3439d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
main.c
programs/winetest/main.c
+12
-0
No files found.
programs/winetest/main.c
View file @
4de19cff
...
...
@@ -650,6 +650,16 @@ run_tests (char *logname)
return
logname
;
}
static
BOOL
WINAPI
ctrl_handler
(
DWORD
ctrl_type
)
{
if
(
ctrl_type
==
CTRL_C_EVENT
)
{
printf
(
"Ignoring Ctrl-C, use Ctrl-Break if you really want to terminate
\n
"
);
return
TRUE
;
}
return
FALSE
;
}
static
void
usage
(
void
)
{
...
...
@@ -750,6 +760,8 @@ int main( int argc, char *argv[] )
if
(
!
running_on_visible_desktop
())
report
(
R_FATAL
,
"Tests must be run on a visible desktop"
);
SetConsoleCtrlHandler
(
ctrl_handler
,
TRUE
);
if
(
reset_env
)
{
SetEnvironmentVariableA
(
"WINETEST_PLATFORM"
,
running_under_wine
()
?
"wine"
:
"windows"
);
...
...
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