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
6dc86da5
Commit
6dc86da5
authored
Jun 21, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme/tests: Only test the needed functions once, bail out if one is missing.
parent
36a775d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
system.c
dlls/uxtheme/tests/system.c
+14
-10
No files found.
dlls/uxtheme/tests/system.c
View file @
6dc86da5
...
...
@@ -58,6 +58,15 @@ static BOOL InitFunctionPtrs(void)
UXTHEME_GET_PROC
(
OpenThemeData
)
UXTHEME_GET_PROC
(
SetWindowTheme
)
}
/* The following functions should be available, if not return FALSE. The Vista functions will
* be checked (at some point in time) within the single tests if needed. All used functions for
* now are present on WinXP, W2K3 and Wine.
*/
if
(
!
pCloseThemeData
||
!
pGetWindowTheme
||
!
pIsAppThemed
||
!
pIsThemeActive
||
!
pOpenThemeData
||
!
pSetWindowTheme
)
return
FALSE
;
return
TRUE
;
}
...
...
@@ -268,28 +277,23 @@ START_TEST(system)
/* IsThemeActive and IsAppThemed */
trace
(
"Starting test_IsThemed()
\n
"
);
if
(
pIsAppThemed
&&
pIsThemeActive
)
test_IsThemed
();
test_IsThemed
();
/* GetWindowTheme */
trace
(
"Starting test_GetWindowTheme()
\n
"
);
if
(
pGetWindowTheme
)
test_GetWindowTheme
();
test_GetWindowTheme
();
/* SetWindowTheme */
trace
(
"Starting test_SetWindowTheme()
\n
"
);
if
(
pSetWindowTheme
)
test_SetWindowTheme
();
test_SetWindowTheme
();
/* OpenThemeData */
trace
(
"Starting test_OpenThemeData()
\n
"
);
if
(
pOpenThemeData
&&
pIsThemeActive
)
test_OpenThemeData
();
test_OpenThemeData
();
/* CloseThemeData */
trace
(
"Starting test_CloseThemeData()
\n
"
);
if
(
pCloseThemeData
)
test_CloseThemeData
();
test_CloseThemeData
();
FreeLibrary
(
hUxtheme
);
}
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