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
8a4db52f
Commit
8a4db52f
authored
Dec 08, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Remove unneeded casts.
parent
9e55f92b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
collection.c
dlls/dmusic/collection.c
+1
-1
dmusic.c
dlls/dmusic/dmusic.c
+1
-1
dmusic_main.c
dlls/dmusic/dmusic_main.c
+1
-1
No files found.
dlls/dmusic/collection.c
View file @
8a4db52f
...
...
@@ -118,7 +118,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicCollection_GetInstr
tmpEntry
=
LIST_ENTRY
(
listEntry
,
DMUS_PRIVATE_INSTRUMENTENTRY
,
entry
);
IDirectMusicInstrument_GetPatch
(
tmpEntry
->
pInstrument
,
&
dwInstPatch
);
if
(
dwPatch
==
dwInstPatch
)
{
*
ppInstrument
=
(
LPDIRECTMUSICINSTRUMENT
)
tmpEntry
->
pInstrument
;
*
ppInstrument
=
tmpEntry
->
pInstrument
;
IDirectMusicInstrument_AddRef
(
tmpEntry
->
pInstrument
);
IDirectMusicInstrumentImpl_Custom_Load
(
tmpEntry
->
pInstrument
,
This
->
pStm
);
/* load instrument before returning it */
TRACE
(
": returning instrument %p
\n
"
,
*
ppInstrument
);
...
...
dlls/dmusic/dmusic.c
View file @
8a4db52f
...
...
@@ -134,7 +134,7 @@ static HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLS
if
(
!
This
->
ppPorts
)
This
->
ppPorts
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
LPDIRECTMUSICPORT
)
*
This
->
nrofports
);
else
This
->
ppPorts
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
ppPorts
,
sizeof
(
LPDIRECTMUSICPORT
)
*
This
->
nrofports
);
This
->
ppPorts
[
This
->
nrofports
-
1
]
=
pNewPort
;
*
ppPort
=
(
LPDIRECTMUSICPORT
)
pNewPort
;
*
ppPort
=
pNewPort
;
return
S_OK
;
}
}
...
...
dlls/dmusic/dmusic_main.c
View file @
8a4db52f
...
...
@@ -54,7 +54,7 @@ static ULONG WINAPI DirectMusicCF_Release(LPCLASSFACTORY iface) {
static
HRESULT
WINAPI
DirectMusicCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
TRACE
(
"(%p, %s, %p)
\n
"
,
pOuter
,
debugstr_dmguid
(
riid
),
ppobj
);
return
DMUSIC_CreateDirectMusicImpl
(
riid
,
(
LPVOID
*
)
ppobj
,
pOuter
);
return
DMUSIC_CreateDirectMusicImpl
(
riid
,
ppobj
,
pOuter
);
}
static
HRESULT
WINAPI
DirectMusicCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
dolock
)
{
...
...
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