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
14d8b51b
Commit
14d8b51b
authored
Feb 15, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Feb 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Add argument check in D3DReflect().
parent
f8da57ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
d3dcompiler_43_main.c
dlls/d3dcompiler_43/d3dcompiler_43_main.c
+13
-0
No files found.
dlls/d3dcompiler_43/d3dcompiler_43_main.c
View file @
14d8b51b
...
...
@@ -128,9 +128,22 @@ HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void
{
struct
d3dcompiler_shader_reflection
*
object
;
HRESULT
hr
;
const
DWORD
*
temp
=
data
;
TRACE
(
"data %p, data_size %lu, riid %s, blob %p
\n
"
,
data
,
data_size
,
debugstr_guid
(
riid
),
reflector
);
if
(
!
data
||
data_size
<
32
)
{
WARN
(
"Invalid argument supplied.
\n
"
);
return
D3DERR_INVALIDCALL
;
}
if
(
temp
[
6
]
!=
data_size
)
{
WARN
(
"Wrong size supplied.
\n
"
);
return
E_FAIL
;
}
if
(
!
IsEqualGUID
(
riid
,
&
IID_ID3D11ShaderReflection
))
{
WARN
(
"Wrong riid %s, accept only %s!
\n
"
,
debugstr_guid
(
riid
),
debugstr_guid
(
&
IID_ID3D11ShaderReflection
));
...
...
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