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
d0400e56
Commit
d0400e56
authored
Oct 27, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Avoid crashing if MF_BYTESTREAM_EFFECTIVE_URL is missing.
Wine-Bug:
https://bugs.winehq.org//show_bug.cgi?id=55588
parent
48cebe2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mf.c
dlls/mf/tests/mf.c
+4
-2
No files found.
dlls/mf/tests/mf.c
View file @
d0400e56
...
...
@@ -6485,9 +6485,11 @@ static void test_scheme_resolvers(void)
PropVariantInit
(
&
propvar
);
hr
=
IMFAttributes_GetItem
(
attributes
,
&
MF_BYTESTREAM_EFFECTIVE_URL
,
&
propvar
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
MF_E_ATTRIBUTENOTFOUND
)
/* Win7 */
,
"got hr %#lx
\n
"
,
hr
);
ok
(
!
wcsncmp
(
expect_domain
[
i
],
propvar
.
pwszVal
,
wcslen
(
expect_domain
[
i
]))
||
broken
(
hr
==
MF_E_ATTRIBUTENOTFOUND
)
/* Win7 */
,
if
(
hr
==
S_OK
)
{
ok
(
!
wcsncmp
(
expect_domain
[
i
],
propvar
.
pwszVal
,
wcslen
(
expect_domain
[
i
])),
"got url %s
\n
"
,
debugstr_w
(
propvar
.
pwszVal
));
}
hr
=
PropVariantClear
(
&
propvar
);
ok
(
hr
==
S_OK
,
"got hr %#lx
\n
"
,
hr
);
...
...
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