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
892f7359
Commit
892f7359
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Do not cast NULL.
parent
706df65c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dmusic.c
dlls/dmusic/dmusic.c
+2
-2
port.c
dlls/dmusic/port.c
+2
-2
No files found.
dlls/dmusic/dmusic.c
View file @
892f7359
...
@@ -127,7 +127,7 @@ static HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLS
...
@@ -127,7 +127,7 @@ static HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLS
if
(
IsEqualCLSID
(
rclsidPort
,
&
PortCaps
.
guidPort
))
{
if
(
IsEqualCLSID
(
rclsidPort
,
&
PortCaps
.
guidPort
))
{
hr
=
DMUSIC_CreateDirectMusicPortImpl
(
&
IID_IDirectMusicPort
,
(
LPVOID
*
)
&
pNewPort
,
(
LPUNKNOWN
)
This
,
pPortParams
,
&
PortCaps
);
hr
=
DMUSIC_CreateDirectMusicPortImpl
(
&
IID_IDirectMusicPort
,
(
LPVOID
*
)
&
pNewPort
,
(
LPUNKNOWN
)
This
,
pPortParams
,
&
PortCaps
);
if
(
FAILED
(
hr
))
{
if
(
FAILED
(
hr
))
{
*
ppPort
=
(
LPDIRECTMUSICPORT
)
NULL
;
*
ppPort
=
NULL
;
return
hr
;
return
hr
;
}
}
This
->
nrofports
++
;
This
->
nrofports
++
;
...
@@ -255,7 +255,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPU
...
@@ -255,7 +255,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPU
dmusic
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusic8Impl
));
dmusic
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusic8Impl
));
if
(
NULL
==
dmusic
)
{
if
(
NULL
==
dmusic
)
{
*
ppobj
=
(
LPDIRECTMUSIC8
)
NULL
;
*
ppobj
=
NULL
;
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
dmusic
->
lpVtbl
=
&
DirectMusic8_Vtbl
;
dmusic
->
lpVtbl
=
&
DirectMusic8_Vtbl
;
...
...
dlls/dmusic/port.c
View file @
892f7359
...
@@ -243,8 +243,8 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPortImpl (LPCGUID lpcGUID, LPVOID *ppobj,
...
@@ -243,8 +243,8 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPortImpl (LPCGUID lpcGUID, LPVOID *ppobj,
TRACE
(
"(%p,%p,%p)
\n
"
,
lpcGUID
,
ppobj
,
pUnkOuter
);
TRACE
(
"(%p,%p,%p)
\n
"
,
lpcGUID
,
ppobj
,
pUnkOuter
);
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicPortImpl
));
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicPortImpl
));
if
(
NULL
==
obj
)
{
if
(
NULL
==
obj
)
{
*
ppobj
=
(
LPDIRECTMUSICPORT
)
NULL
;
*
ppobj
=
NULL
;
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
obj
->
lpVtbl
=
&
DirectMusicPort_Vtbl
;
obj
->
lpVtbl
=
&
DirectMusicPort_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