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
5d5853e3
Commit
5d5853e3
authored
Jun 01, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jun 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Handle BT_NONE in GetThemeBackgroundRegion().
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
parent
9fa5f83a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
draw.c
dlls/uxtheme/draw.c
+5
-1
system.c
dlls/uxtheme/tests/system.c
+0
-1
No files found.
dlls/uxtheme/draw.c
View file @
5d5853e3
...
...
@@ -2063,8 +2063,12 @@ HRESULT WINAPI GetThemeBackgroundRegion(HTHEME hTheme, HDC hdc, int iPartId,
if
(
!*
pRegion
)
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
}
else
if
(
bgtype
==
BT_NONE
)
{
hr
=
E_UNEXPECTED
;
}
else
{
FIXME
(
"Unknown background type
\n
"
);
FIXME
(
"Unknown background type
%d
\n
"
,
bgtype
);
/* This should never happen, and hence I don't know what to return */
hr
=
E_FAIL
;
}
...
...
dlls/uxtheme/tests/system.c
View file @
5d5853e3
...
...
@@ -2425,7 +2425,6 @@ static void test_GetThemeBackgroundRegion(void)
SetRect
(
&
rect
,
0
,
0
,
10
,
10
);
region
=
(
HRGN
)
0xdeadbeef
;
hr
=
GetThemeBackgroundRegion
(
htheme
,
NULL
,
RP_BAND
,
0
,
&
rect
,
&
region
);
todo_wine
ok
(
hr
==
E_UNEXPECTED
||
broken
(
hr
==
S_OK
)
/* < Win10 */
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
region
==
(
HRGN
)
0xdeadbeef
,
"Got unexpected region.
\n
"
);
...
...
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