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
9fd08dbf
Commit
9fd08dbf
authored
Nov 12, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Nov 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Fix a couple of failure return values in >= 46 D3DReflect().
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d6c6fc45
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
reflection.c
dlls/d3dcompiler_43/reflection.c
+8
-0
No files found.
dlls/d3dcompiler_43/reflection.c
View file @
9fd08dbf
...
@@ -2005,13 +2005,21 @@ HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void
...
@@ -2005,13 +2005,21 @@ HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void
if
(
temp
[
6
]
!=
data_size
)
if
(
temp
[
6
]
!=
data_size
)
{
{
WARN
(
"Wrong size supplied.
\n
"
);
WARN
(
"Wrong size supplied.
\n
"
);
#if D3D_COMPILER_VERSION >= 46
return
D3DERR_INVALIDCALL
;
#else
return
E_FAIL
;
return
E_FAIL
;
#endif
}
}
if
(
!
IsEqualGUID
(
riid
,
&
IID_ID3D11ShaderReflection
))
if
(
!
IsEqualGUID
(
riid
,
&
IID_ID3D11ShaderReflection
))
{
{
WARN
(
"Wrong riid %s, accept only %s!
\n
"
,
debugstr_guid
(
riid
),
debugstr_guid
(
&
IID_ID3D11ShaderReflection
));
WARN
(
"Wrong riid %s, accept only %s!
\n
"
,
debugstr_guid
(
riid
),
debugstr_guid
(
&
IID_ID3D11ShaderReflection
));
#if D3D_COMPILER_VERSION >= 46
return
E_INVALIDARG
;
#else
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
#endif
}
}
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
...
...
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