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
c49f09d6
Commit
c49f09d6
authored
Apr 12, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Apr 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Fix HeapAlloc/HeapFree for type members in the reflection parser.
parent
66f212e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
reflection.c
dlls/d3dcompiler_43/reflection.c
+2
-1
No files found.
dlls/d3dcompiler_43/reflection.c
View file @
c49f09d6
...
...
@@ -235,6 +235,7 @@ static void d3dcompiler_shader_reflection_type_destroy(struct wine_rb_entry *ent
{
free_type_member
(
&
t
->
members
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
t
->
members
);
}
HeapFree
(
GetProcessHeap
(),
0
,
t
);
...
...
@@ -1235,7 +1236,7 @@ static HRESULT d3dcompiler_parse_type(struct d3dcompiler_shader_reflection_type
{
const
char
*
ptr2
=
data
+
member_offset
;
members
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
members
));
members
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
members
)
*
desc
->
Members
);
if
(
!
members
)
{
ERR
(
"Failed to allocate type memory.
\n
"
);
...
...
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