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
b91f72ec
Commit
b91f72ec
authored
Jan 08, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband: Remove superfluous casts.
parent
e0851fc1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
band.c
dlls/dmband/band.c
+4
-4
bandtrack.c
dlls/dmband/bandtrack.c
+2
-2
dmband_main.c
dlls/dmband/dmband_main.c
+2
-2
No files found.
dlls/dmband/band.c
View file @
b91f72ec
...
...
@@ -32,19 +32,19 @@ static HRESULT WINAPI IDirectMusicBandImpl_IUnknown_QueryInterface (LPUNKNOWN if
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
UnknownVtbl
;
*
ppobj
=
&
This
->
UnknownVtbl
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicBand
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
BandVtbl
;
*
ppobj
=
&
This
->
BandVtbl
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicObject
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
ObjectVtbl
;
*
ppobj
=
&
This
->
ObjectVtbl
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistStream
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
PersistStreamVtbl
;
*
ppobj
=
&
This
->
PersistStreamVtbl
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/dmband/bandtrack.c
View file @
b91f72ec
...
...
@@ -31,7 +31,7 @@ static HRESULT WINAPI IDirectMusicBandTrack_IUnknown_QueryInterface (LPUNKNOWN i
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
*
ppobj
=
(
LPUNKNOWN
)
&
This
->
UnknownVtbl
;
*
ppobj
=
&
This
->
UnknownVtbl
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicTrack
)
...
...
@@ -40,7 +40,7 @@ static HRESULT WINAPI IDirectMusicBandTrack_IUnknown_QueryInterface (LPUNKNOWN i
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistStream
))
{
*
ppobj
=
(
LPPERSISTSTREAM
)
&
This
->
PersistStreamVtbl
;
*
ppobj
=
&
This
->
PersistStreamVtbl
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/dmband/dmband_main.c
View file @
b91f72ec
...
...
@@ -168,11 +168,11 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
TRACE
(
"(%s, %s, %p)
\n
"
,
debugstr_dmguid
(
rclsid
),
debugstr_dmguid
(
riid
),
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicBand
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
Band_CF
;
*
ppv
=
&
Band_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicBandTrack
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
BandTrack_CF
;
*
ppv
=
&
BandTrack_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
}
...
...
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