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
35939bbe
Commit
35939bbe
authored
Jun 09, 2022
by
Matteo Bruni
Committed by
Alexandre Julliard
Jun 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx10/tests: Add a test for loading an invalid resource from a valid module.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
parent
caa402ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
d3dx10.c
dlls/d3dx10_43/tests/d3dx10.c
+5
-0
No files found.
dlls/d3dx10_43/tests/d3dx10.c
View file @
35939bbe
...
...
@@ -2121,6 +2121,11 @@ static void test_get_image_info(void)
resource_module
=
create_resource_module
(
test_resource_name
,
test_image
[
i
].
data
,
test_image
[
i
].
size
);
hr2
=
0xdeadbeef
;
hr
=
D3DX10GetImageInfoFromResourceW
(
resource_module
,
L"deadbeef"
,
NULL
,
&
image_info
,
&
hr2
);
ok
(
hr
==
D3DX10_ERR_INVALID_DATA
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr2
==
0xdeadbeef
,
"Got unexpected hr2 %#x.
\n
"
,
hr2
);
hr2
=
0xdeadbeef
;
hr
=
D3DX10GetImageInfoFromResourceW
(
resource_module
,
test_resource_name
,
NULL
,
&
image_info
,
&
hr2
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_FAIL
&&
test_image
[
i
].
expected_info
.
ImageFileFormat
==
D3DX10_IFF_WMP
)
||
broken
(
hr
==
D3DX10_ERR_INVALID_DATA
)
/* Vista */
,
...
...
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