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
8553df47
Commit
8553df47
authored
Jan 19, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Validate the DXBC version.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e72db8de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
utils.c
dlls/d3d10/utils.c
+8
-1
No files found.
dlls/d3d10/utils.c
View file @
8553df47
...
...
@@ -159,6 +159,7 @@ HRESULT parse_dxbc(const char *data, SIZE_T data_size,
DWORD
chunk_count
;
DWORD
total_size
;
unsigned
int
i
;
DWORD
version
;
DWORD
tag
;
if
(
!
data
)
...
...
@@ -179,7 +180,13 @@ HRESULT parse_dxbc(const char *data, SIZE_T data_size,
/* checksum? */
skip_dword_unknown
(
"DXBC header"
,
&
ptr
,
4
);
skip_dword_unknown
(
"DXBC header"
,
&
ptr
,
1
);
read_dword
(
&
ptr
,
&
version
);
TRACE
(
"version: %#x.
\n
"
,
version
);
if
(
version
!=
0x00000001
)
{
WARN
(
"Got unexpected DXBC version %#x.
\n
"
,
version
);
return
E_FAIL
;
}
read_dword
(
&
ptr
,
&
total_size
);
TRACE
(
"total size: %#x
\n
"
,
total_size
);
...
...
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