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
310c174e
Commit
310c174e
authored
Jan 22, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Make sure This->buf.pdata is set to NULL before being used in case of error.
parent
d3fb5860
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
d3dxof.c
dlls/d3dxof/d3dxof.c
+4
-3
No files found.
dlls/d3dxof/d3dxof.c
View file @
310c174e
...
...
@@ -963,6 +963,9 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
This
->
buf
.
pxo_globals
=
This
->
xobjects
;
This
->
buf
.
nb_pxo_globals
=
This
->
nb_xobjects
;
This
->
buf
.
level
=
0
;
This
->
buf
.
pdata
=
NULL
;
This
->
buf
.
capacity
=
0
;
This
->
buf
.
cur_pos_data
=
0
;
This
->
buf
.
pxo_tab
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
xobject
)
*
MAX_SUBOBJECTS
);
if
(
!
This
->
buf
.
pxo_tab
)
...
...
@@ -973,9 +976,7 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
}
This
->
buf
.
pxo
=
This
->
xobjects
[
This
->
nb_xobjects
]
=
This
->
buf
.
pxo_tab
;
This
->
buf
.
pxo
->
pdata
=
This
->
buf
.
pdata
=
NULL
;
This
->
buf
.
capacity
=
0
;
This
->
buf
.
cur_pos_data
=
0
;
This
->
buf
.
pxo
->
pdata
=
NULL
;
This
->
buf
.
pxo
->
nb_subobjects
=
1
;
pstrings
=
HeapAlloc
(
GetProcessHeap
(),
0
,
MAX_STRINGS_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