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
6891b963
Commit
6891b963
authored
Dec 11, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: pObject NULL checks are not necessary (Coverity).
parent
98158988
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
loader.c
dlls/dmloader/loader.c
+6
-10
No files found.
dlls/dmloader/loader.c
View file @
6891b963
...
...
@@ -333,18 +333,14 @@ static HRESULT WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_GetObject (LPDIR
if
(
!
pObjectEntry
)
{
pObjectEntry
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
WINE_LOADER_ENTRY
));
DM_STRUCT_INIT
(
&
pObjectEntry
->
Desc
);
if
(
pObject
)
{
DMUSIC_CopyDescriptor
(
&
pObjectEntry
->
Desc
,
&
GotDesc
);
pObjectEntry
->
pObject
=
pObject
;
pObjectEntry
->
bInvalidDefaultDLS
=
FALSE
;
}
DMUSIC_CopyDescriptor
(
&
pObjectEntry
->
Desc
,
&
GotDesc
);
pObjectEntry
->
pObject
=
pObject
;
pObjectEntry
->
bInvalidDefaultDLS
=
FALSE
;
list_add_head
(
This
->
pObjects
,
&
pObjectEntry
->
entry
);
}
else
{
if
(
pObject
)
{
DMUSIC_CopyDescriptor
(
&
pObjectEntry
->
Desc
,
&
GotDesc
);
pObjectEntry
->
pObject
=
pObject
;
pObjectEntry
->
bInvalidDefaultDLS
=
FALSE
;
}
DMUSIC_CopyDescriptor
(
&
pObjectEntry
->
Desc
,
&
GotDesc
);
pObjectEntry
->
pObject
=
pObject
;
pObjectEntry
->
bInvalidDefaultDLS
=
FALSE
;
}
TRACE
(
": filled in cache entry
\n
"
);
}
else
TRACE
(
": caching disabled
\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