Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b238f0af
Commit
b238f0af
authored
Nov 02, 2023
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme/tests: Move the IsThemePartDefined() test before hTheme handle is closed.
Also fix some hTheme handle leaks. Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
parent
ea509581
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
system.c
dlls/uxtheme/tests/system.c
+9
-7
No files found.
dlls/uxtheme/tests/system.c
View file @
b238f0af
...
...
@@ -562,12 +562,14 @@ static void test_OpenThemeData(void)
hTheme
=
OpenThemeData
(
hWnd
,
szButtonClassList
);
ok
(
hTheme
!=
NULL
,
"got NULL, expected a HTHEME handle
\n
"
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
()
);
CloseThemeData
(
hTheme
);
/* Test with bUtToN instead of Button */
SetLastError
(
0xdeadbeef
);
hTheme
=
OpenThemeData
(
hWnd
,
szButtonClassList2
);
ok
(
hTheme
!=
NULL
,
"got NULL, expected a HTHEME handle
\n
"
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
()
);
CloseThemeData
(
hTheme
);
SetLastError
(
0xdeadbeef
);
hTheme
=
OpenThemeData
(
hWnd
,
szClassList
);
...
...
@@ -583,6 +585,12 @@ static void test_OpenThemeData(void)
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
bTPDefined
=
IsThemePartDefined
(
hTheme
,
0
,
0
);
todo_wine
ok
(
bTPDefined
==
FALSE
,
"Expected FALSE
\n
"
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
()
);
hRes
=
CloseThemeData
(
hTheme
);
ok
(
hRes
==
S_OK
,
"Expected S_OK, got 0x%08lx
\n
"
,
hRes
);
...
...
@@ -600,12 +608,6 @@ static void test_OpenThemeData(void)
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
bTPDefined
=
IsThemePartDefined
(
hTheme
,
0
,
0
);
todo_wine
ok
(
bTPDefined
==
FALSE
,
"Expected FALSE
\n
"
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
()
);
DestroyWindow
(
hWnd
);
}
...
...
@@ -2591,7 +2593,7 @@ static void test_theme(void)
/* > XP use opaque scrollbar arrow parts, but TMT_TRANSPARENT is TRUE */
else
{
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx
,
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx
.
\n
"
,
hr
);
ok
(
transparent
,
"Expected transparent.
\n
"
);
transparent
=
IsThemeBackgroundPartiallyTransparent
(
htheme
,
SBP_ARROWBTN
,
0
);
...
...
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