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
3ce650bf
Commit
3ce650bf
authored
Jan 31, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Added missing NULL ptr check (Coverity).
parent
e7d58bdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
segtriggertrack.c
dlls/dmime/segtriggertrack.c
+9
-1
No files found.
dlls/dmime/segtriggertrack.c
View file @
3ce650bf
...
...
@@ -274,7 +274,7 @@ static HRESULT IDirectMusicSegTriggerTrack_IPersistStream_ParseSegment (LPPERSIS
TRACE_
(
dmfile
)(
": segment item chunk
\n
"
);
/** alloc new item entry */
pNewItem
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DMUS_PRIVATE_SEGMENT_ITEM
));
if
(
NULL
==
pNewItem
)
{
if
(
!
pNewItem
)
{
ERR
(
": no more memory
\n
"
);
return
E_OUTOFMEMORY
;
}
...
...
@@ -288,6 +288,10 @@ static HRESULT IDirectMusicSegTriggerTrack_IPersistStream_ParseSegment (LPPERSIS
}
case
DMUS_FOURCC_SEGMENTITEMNAME_CHUNK
:
{
TRACE_
(
dmfile
)(
": segment item name chunk
\n
"
);
if
(
!
pNewItem
)
{
ERR
(
": pNewItem not allocated, bad chunk order?
\n
"
);
return
E_FAIL
;
}
IStream_Read
(
pStm
,
pNewItem
->
wszName
,
Chunk
.
dwSize
,
NULL
);
TRACE_
(
dmfile
)(
" - name: %s
\n
"
,
debugstr_w
(
pNewItem
->
wszName
));
break
;
...
...
@@ -305,6 +309,10 @@ static HRESULT IDirectMusicSegTriggerTrack_IPersistStream_ParseSegment (LPPERSIS
ERR
(
": could not load Reference
\n
"
);
return
hr
;
}
if
(
!
pNewItem
)
{
ERR
(
": pNewItem not allocated, bad chunk order?
\n
"
);
return
E_FAIL
;
}
pNewItem
->
pObject
=
pObject
;
break
;
}
...
...
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