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
9d449ab4
Commit
9d449ab4
authored
Jun 22, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme/tests: Destroy the windows after we've used them.
parent
7c0aaf31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
system.c
dlls/uxtheme/tests/system.c
+18
-1
No files found.
dlls/uxtheme/tests/system.c
View file @
9d449ab4
...
...
@@ -104,6 +104,7 @@ static void test_GetWindowTheme(void)
{
HTHEME
hTheme
;
HWND
hWnd
;
BOOL
bDestroyed
;
SetLastError
(
0xdeadbeef
);
hTheme
=
pGetWindowTheme
(
NULL
);
...
...
@@ -123,12 +124,18 @@ static void test_GetWindowTheme(void)
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
bDestroyed
=
DestroyWindow
(
hWnd
);
if
(
!
bDestroyed
)
trace
(
"Window %p couldn't be destroyed : 0x%08lx
\n
"
,
hWnd
,
GetLastError
());
}
static
void
test_SetWindowTheme
(
void
)
{
HRESULT
hRes
;
HWND
hWnd
;
BOOL
bDestroyed
;
SetLastError
(
0xdeadbeef
);
hRes
=
pSetWindowTheme
(
NULL
,
NULL
,
NULL
);
...
...
@@ -150,6 +157,11 @@ static void test_SetWindowTheme(void)
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
bDestroyed
=
DestroyWindow
(
hWnd
);
if
(
!
bDestroyed
)
trace
(
"Window %p couldn't be destroyed : 0x%08lx
\n
"
,
hWnd
,
GetLastError
());
}
static
void
test_OpenThemeData
(
void
)
...
...
@@ -157,6 +169,7 @@ static void test_OpenThemeData(void)
HTHEME
hTheme
;
HWND
hWnd
;
BOOL
bThemeActive
;
BOOL
bDestroyed
;
WCHAR
szInvalidClassList
[]
=
{
'D'
,
'E'
,
'A'
,
'D'
,
'B'
,
'E'
,
'E'
,
'F'
,
0
};
WCHAR
szButtonClassList
[]
=
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
0
};
...
...
@@ -222,7 +235,6 @@ static void test_OpenThemeData(void)
"Expected GLE() to be E_PROP_ID_UNSUPPORTED, got 0x%08lx
\n
"
,
GetLastError
());
if
(
!
bThemeActive
)
{
SetLastError
(
0xdeadbeef
);
...
...
@@ -262,6 +274,11 @@ static void test_OpenThemeData(void)
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
());
bDestroyed
=
DestroyWindow
(
hWnd
);
if
(
!
bDestroyed
)
trace
(
"Window %p couldn't be destroyed : 0x%08lx
\n
"
,
hWnd
,
GetLastError
());
}
static
void
test_CloseThemeData
(
void
)
...
...
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