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
b609a5c0
Commit
b609a5c0
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Do not cast NULL.
parent
cc41ac4c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
classfactory.c
dlls/dmloader/classfactory.c
+2
-2
loader.c
dlls/dmloader/loader.c
+1
-1
No files found.
dlls/dmloader/classfactory.c
View file @
b609a5c0
...
...
@@ -98,7 +98,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicLoaderCF (LPCGUID lpcGUID, LPVOID *ppobj,
TRACE
(
"(%s, %p, %p)
\n
"
,
debugstr_dmguid
(
lpcGUID
),
ppobj
,
pUnkOuter
);
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicLoaderCF
));
if
(
NULL
==
obj
)
{
*
ppobj
=
(
LPCLASSFACTORY
)
NULL
;
*
ppobj
=
NULL
;
return
E_OUTOFMEMORY
;
}
obj
->
lpVtbl
=
&
DirectMusicLoaderCF_Vtbl
;
...
...
@@ -187,7 +187,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicContainerCF (LPCGUID lpcGUID, LPVOID *ppo
TRACE
(
"(%s, %p, %p)
\n
"
,
debugstr_dmguid
(
lpcGUID
),
ppobj
,
pUnkOuter
);
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicContainerCF
));
if
(
NULL
==
obj
)
{
*
ppobj
=
(
LPCLASSFACTORY
)
NULL
;
*
ppobj
=
NULL
;
return
E_OUTOFMEMORY
;
}
obj
->
lpVtbl
=
&
DirectMusicContainerCF_Vtbl
;
...
...
dlls/dmloader/loader.c
View file @
b609a5c0
...
...
@@ -798,7 +798,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicLoaderImpl (LPCGUID lpcGUID, LPVOID *ppob
TRACE
(
"(%s, %p, %p)
\n
"
,
debugstr_dmguid
(
lpcGUID
),
ppobj
,
pUnkOuter
);
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicLoaderImpl
));
if
(
NULL
==
obj
)
{
*
ppobj
=
(
LPDIRECTMUSICLOADER8
)
NULL
;
*
ppobj
=
NULL
;
return
E_OUTOFMEMORY
;
}
obj
->
LoaderVtbl
=
&
DirectMusicLoader_Loader_Vtbl
;
...
...
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