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
4b50a4c6
Commit
4b50a4c6
authored
Jan 13, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Remove superfluous pointer casts.
parent
d576c2d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
container.c
dlls/dmloader/container.c
+3
-3
loaderstream.c
dlls/dmloader/loaderstream.c
+6
-6
No files found.
dlls/dmloader/container.c
View file @
4b50a4c6
...
...
@@ -81,15 +81,15 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicContainer_QueryInter
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusicContainer
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
ContainerVtbl
;
*
ppobj
=
&
This
->
ContainerVtbl
;
IDirectMusicContainerImpl_IDirectMusicContainer_AddRef
((
LPDIRECTMUSICCONTAINER
)
&
This
->
ContainerVtbl
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicObject
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
ObjectVtbl
;
*
ppobj
=
&
This
->
ObjectVtbl
;
IDirectMusicContainerImpl_IDirectMusicObject_AddRef
((
LPDIRECTMUSICOBJECT
)
&
This
->
ObjectVtbl
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistStream
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
PersistStreamVtbl
;
*
ppobj
=
&
This
->
PersistStreamVtbl
;
IDirectMusicContainerImpl_IPersistStream_AddRef
((
LPPERSISTSTREAM
)
&
This
->
PersistStreamVtbl
);
return
S_OK
;
}
...
...
dlls/dmloader/loaderstream.c
View file @
4b50a4c6
...
...
@@ -96,11 +96,11 @@ static HRESULT WINAPI IDirectMusicLoaderFileStream_IStream_QueryInterface (LPSTR
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IStream
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
StreamVtbl
;
*
ppobj
=
&
This
->
StreamVtbl
;
IDirectMusicLoaderFileStream_IStream_AddRef
((
LPSTREAM
)
&
This
->
StreamVtbl
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicGetLoader
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
GetLoaderVtbl
;
*
ppobj
=
&
This
->
GetLoaderVtbl
;
IDirectMusicLoaderFileStream_IDirectMusicGetLoader_AddRef
((
LPDIRECTMUSICGETLOADER
)
&
This
->
GetLoaderVtbl
);
return
S_OK
;
}
...
...
@@ -344,11 +344,11 @@ static HRESULT WINAPI IDirectMusicLoaderResourceStream_IStream_QueryInterface (L
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IStream
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
StreamVtbl
;
*
ppobj
=
&
This
->
StreamVtbl
;
IDirectMusicLoaderResourceStream_IStream_AddRef
((
LPSTREAM
)
&
This
->
StreamVtbl
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicGetLoader
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
GetLoaderVtbl
;
*
ppobj
=
&
This
->
GetLoaderVtbl
;
IDirectMusicLoaderResourceStream_IDirectMusicGetLoader_AddRef
((
LPDIRECTMUSICGETLOADER
)
&
This
->
GetLoaderVtbl
);
return
S_OK
;
}
...
...
@@ -604,11 +604,11 @@ static HRESULT WINAPI IDirectMusicLoaderGenericStream_IStream_QueryInterface (LP
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IStream
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
StreamVtbl
;
*
ppobj
=
&
This
->
StreamVtbl
;
IDirectMusicLoaderGenericStream_IStream_AddRef
((
LPSTREAM
)
&
This
->
StreamVtbl
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicGetLoader
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
GetLoaderVtbl
;
*
ppobj
=
&
This
->
GetLoaderVtbl
;
IDirectMusicLoaderGenericStream_IDirectMusicGetLoader_AddRef
((
LPDIRECTMUSICGETLOADER
)
&
This
->
GetLoaderVtbl
);
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