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
86e88f51
Commit
86e88f51
authored
Jan 03, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Improve error handling in remap_faces_for_attrsort.
parent
303a5f05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
mesh.c
dlls/d3dx9_36/mesh.c
+7
-2
No files found.
dlls/d3dx9_36/mesh.c
View file @
86e88f51
...
...
@@ -1615,12 +1615,17 @@ static HRESULT remap_faces_for_attrsort(struct d3dx9_mesh *This, const DWORD *in
DWORD
**
sorted_attrib_ptr_buffer
=
NULL
;
DWORD
i
;
*
face_remap
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
numfaces
*
sizeof
(
**
face_remap
));
sorted_attrib_ptr_buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
numfaces
*
sizeof
(
*
sorted_attrib_ptr_buffer
));
if
(
!*
face_remap
||
!
sorted_attrib_ptr_buffer
)
{
if
(
!
sorted_attrib_ptr_buffer
)
return
E_OUTOFMEMORY
;
*
face_remap
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
numfaces
*
sizeof
(
**
face_remap
));
if
(
!*
face_remap
)
{
HeapFree
(
GetProcessHeap
(),
0
,
sorted_attrib_ptr_buffer
);
return
E_OUTOFMEMORY
;
}
for
(
i
=
0
;
i
<
This
->
numfaces
;
i
++
)
sorted_attrib_ptr_buffer
[
i
]
=
&
attrib_buffer
[
i
];
qsort
(
sorted_attrib_ptr_buffer
,
This
->
numfaces
,
sizeof
(
*
sorted_attrib_ptr_buffer
),
...
...
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