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
472d802a
Commit
472d802a
authored
Mar 18, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Always initialize output shader blob pointer in D3DCompile2().
parent
f50a2631
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
compiler.c
dlls/d3dcompiler_43/compiler.c
+2
-0
hlsl_d3d9.c
dlls/d3dcompiler_43/tests/hlsl_d3d9.c
+2
-1
No files found.
dlls/d3dcompiler_43/compiler.c
View file @
472d802a
...
...
@@ -462,6 +462,8 @@ HRESULT WINAPI D3DCompile2(const void *data, SIZE_T data_size, const char *filen
if
(
secondary_flags
)
FIXME
(
"Ignoring secondary flags %#x.
\n
"
,
secondary_flags
);
if
(
shader_blob
)
*
shader_blob
=
NULL
;
if
(
messages_blob
)
*
messages_blob
=
NULL
;
...
...
dlls/d3dcompiler_43/tests/hlsl_d3d9.c
View file @
472d802a
...
...
@@ -1412,7 +1412,8 @@ static void test_fail(void)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
++
i
)
{
compiled
=
errors
=
NULL
;
errors
=
NULL
;
compiled
=
(
void
*
)
0xdeadbeef
;
hr
=
D3DCompile
(
tests
[
i
],
strlen
(
tests
[
i
]),
NULL
,
NULL
,
NULL
,
"test"
,
targets
[
j
],
0
,
0
,
&
compiled
,
&
errors
);
ok
(
hr
==
E_FAIL
,
"Test %u, target %s: Got unexpected hr %#lx.
\n
"
,
i
,
targets
[
j
],
hr
);
ok
(
!!
errors
,
"Test %u, target %s, expected non-NULL error blob.
\n
"
,
i
,
targets
[
j
]);
...
...
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