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
f47bcc22
Commit
f47bcc22
authored
Mar 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Refuse to run if we cannot create a window.
parent
482fbe91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
gui.c
programs/winetest/gui.c
+1
-1
main.c
programs/winetest/main.c
+16
-1
No files found.
programs/winetest/gui.c
View file @
f47bcc22
...
...
@@ -473,7 +473,7 @@ DlgThreadProc (LPVOID param)
NULL
,
DlgProc
);
switch
(
ret
)
{
case
0
:
report
(
R_
WARNING
,
"Invalid parent handle
"
);
report
(
R_
FATAL
,
"Cannot display dialog
"
);
break
;
case
1
:
report
(
R_WARNING
,
"DialogBox failed: %d"
,
...
...
programs/winetest/main.c
View file @
f47bcc22
...
...
@@ -145,6 +145,18 @@ static int check_mount_mgr(void)
return
TRUE
;
}
static
int
check_display_driver
(
void
)
{
if
(
running_under_wine
())
{
HWND
hwnd
=
CreateWindowA
(
"STATIC"
,
""
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
0
,
CW_USEDEFAULT
,
0
,
0
,
0
,
GetModuleHandleA
(
0
),
0
);
if
(
!
hwnd
)
return
FALSE
;
DestroyWindow
(
hwnd
);
}
return
TRUE
;
}
static
int
running_on_visible_desktop
(
void
)
{
HWND
desktop
;
...
...
@@ -1052,7 +1064,10 @@ int main( int argc, char *argv[] )
report
(
R_FATAL
,
"Tests must be run on a visible desktop"
);
if
(
!
check_mount_mgr
())
report
(
R_FATAL
,
"Mount manager not running, most likely your WINEPREFIX wasn't created correctly"
);
report
(
R_FATAL
,
"Mount manager not running, most likely your WINEPREFIX wasn't created correctly."
);
if
(
!
check_display_driver
())
report
(
R_FATAL
,
"Unable to create a window, the display driver is not working."
);
SetConsoleCtrlHandler
(
ctrl_handler
,
TRUE
);
...
...
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