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
d62a0eec
Commit
d62a0eec
authored
Jan 13, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmscript: Remove superfluous pointer casts.
parent
16042cff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
dmscript_main.c
dlls/dmscript/dmscript_main.c
+10
-10
script.c
dlls/dmscript/script.c
+5
-5
scripttrack.c
dlls/dmscript/scripttrack.c
+2
-2
No files found.
dlls/dmscript/dmscript_main.c
View file @
d62a0eec
...
@@ -582,43 +582,43 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
...
@@ -582,43 +582,43 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
{
TRACE
(
"(%s, %s, %p)
\n
"
,
debugstr_dmguid
(
rclsid
),
debugstr_dmguid
(
riid
),
ppv
);
TRACE
(
"(%s, %s, %p)
\n
"
,
debugstr_dmguid
(
rclsid
),
debugstr_dmguid
(
riid
),
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpSegment
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpSegment
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
ScriptAutoImplSegment_CF
;
*
ppv
=
&
ScriptAutoImplSegment_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptTrack
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptTrack
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
ScriptTrack_CF
;
*
ppv
=
&
ScriptTrack_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_AudioVBScript
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_AudioVBScript
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
AudioVBScript_CF
;
*
ppv
=
&
AudioVBScript_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScript
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScript
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
Script_CF
;
*
ppv
=
&
Script_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpPerformance
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpPerformance
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
ScriptAutoImplPerformance_CF
;
*
ppv
=
&
ScriptAutoImplPerformance_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptSourceCodeLoader
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptSourceCodeLoader
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
ScriptSourceCodeLoader_CF
;
*
ppv
=
&
ScriptSourceCodeLoader_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpSegmentState
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpSegmentState
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
ScriptAutoImplSegmentState_CF
;
*
ppv
=
&
ScriptAutoImplSegmentState_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpAudioPathConfig
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpAudioPathConfig
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
ScriptAutoImplAudioPathConfig_CF
;
*
ppv
=
&
ScriptAutoImplAudioPathConfig_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpAudioPath
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpAudioPath
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
ScriptAutoImplAudioPath_CF
;
*
ppv
=
&
ScriptAutoImplAudioPath_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpSong
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicScriptAutoImpSong
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
(
LPVOID
)
&
ScriptAutoImplSong_CF
;
*
ppv
=
&
ScriptAutoImplSong_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/dmscript/script.c
View file @
d62a0eec
...
@@ -45,19 +45,19 @@ static HRESULT WINAPI IDirectMusicScriptImpl_IUnknown_QueryInterface (LPUNKNOWN
...
@@ -45,19 +45,19 @@ static HRESULT WINAPI IDirectMusicScriptImpl_IUnknown_QueryInterface (LPUNKNOWN
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
UnknownVtbl
;
*
ppobj
=
&
This
->
UnknownVtbl
;
IDirectMusicScriptImpl_IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
IDirectMusicScriptImpl_IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicScript
))
{
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicScript
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
ScriptVtbl
;
*
ppobj
=
&
This
->
ScriptVtbl
;
IDirectMusicScriptImpl_IDirectMusicScript_AddRef
((
LPDIRECTMUSICSCRIPT
)
&
This
->
ScriptVtbl
);
IDirectMusicScriptImpl_IDirectMusicScript_AddRef
((
LPDIRECTMUSICSCRIPT
)
&
This
->
ScriptVtbl
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicObject
))
{
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicObject
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
ObjectVtbl
;
*
ppobj
=
&
This
->
ObjectVtbl
;
IDirectMusicScriptImpl_IDirectMusicObject_AddRef
((
LPDIRECTMUSICOBJECT
)
&
This
->
ObjectVtbl
);
IDirectMusicScriptImpl_IDirectMusicObject_AddRef
((
LPDIRECTMUSICOBJECT
)
&
This
->
ObjectVtbl
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistStream
))
{
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistStream
))
{
*
ppobj
=
(
LPVOID
)
&
This
->
PersistStreamVtbl
;
*
ppobj
=
&
This
->
PersistStreamVtbl
;
IDirectMusicScriptImpl_IPersistStream_AddRef
((
LPPERSISTSTREAM
)
&
This
->
PersistStreamVtbl
);
IDirectMusicScriptImpl_IPersistStream_AddRef
((
LPPERSISTSTREAM
)
&
This
->
PersistStreamVtbl
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -524,7 +524,7 @@ static HRESULT WINAPI IDirectMusicScriptImpl_IPersistStream_Load (LPPERSISTSTREA
...
@@ -524,7 +524,7 @@ static HRESULT WINAPI IDirectMusicScriptImpl_IPersistStream_Load (LPPERSISTSTREA
IDirectMusicObject
*
pObject
=
NULL
;
IDirectMusicObject
*
pObject
=
NULL
;
DMUS_OBJECTDESC
desc
;
DMUS_OBJECTDESC
desc
;
ZeroMemory
(
(
LPVOID
)
&
desc
,
sizeof
(
DMUS_OBJECTDESC
));
ZeroMemory
(
&
desc
,
sizeof
(
DMUS_OBJECTDESC
));
desc
.
dwSize
=
sizeof
(
DMUS_OBJECTDESC
);
desc
.
dwSize
=
sizeof
(
DMUS_OBJECTDESC
);
desc
.
dwValidData
=
DMUS_OBJ_STREAM
|
DMUS_OBJ_CLASS
;
desc
.
dwValidData
=
DMUS_OBJ_STREAM
|
DMUS_OBJ_CLASS
;
desc
.
guidClass
=
CLSID_DirectMusicContainer
;
desc
.
guidClass
=
CLSID_DirectMusicContainer
;
...
...
dlls/dmscript/scripttrack.c
View file @
d62a0eec
...
@@ -34,7 +34,7 @@ static HRESULT WINAPI IDirectMusicScriptTrack_IUnknown_QueryInterface (LPUNKNOWN
...
@@ -34,7 +34,7 @@ static HRESULT WINAPI IDirectMusicScriptTrack_IUnknown_QueryInterface (LPUNKNOWN
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
*
ppobj
=
(
LPUNKNOWN
)
&
This
->
UnknownVtbl
;
*
ppobj
=
&
This
->
UnknownVtbl
;
IDirectMusicScriptTrack_IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
IDirectMusicScriptTrack_IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicTrack
)
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicTrack
)
...
@@ -43,7 +43,7 @@ static HRESULT WINAPI IDirectMusicScriptTrack_IUnknown_QueryInterface (LPUNKNOWN
...
@@ -43,7 +43,7 @@ static HRESULT WINAPI IDirectMusicScriptTrack_IUnknown_QueryInterface (LPUNKNOWN
IDirectMusicScriptTrack_IDirectMusicTrack_AddRef
((
LPDIRECTMUSICTRACK8
)
&
This
->
TrackVtbl
);
IDirectMusicScriptTrack_IDirectMusicTrack_AddRef
((
LPDIRECTMUSICTRACK8
)
&
This
->
TrackVtbl
);
return
S_OK
;
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistStream
))
{
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistStream
))
{
*
ppobj
=
(
LPPERSISTSTREAM
)
&
This
->
PersistStreamVtbl
;
*
ppobj
=
&
This
->
PersistStreamVtbl
;
IDirectMusicScriptTrack_IPersistStream_AddRef
((
LPPERSISTSTREAM
)
&
This
->
PersistStreamVtbl
);
IDirectMusicScriptTrack_IPersistStream_AddRef
((
LPPERSISTSTREAM
)
&
This
->
PersistStreamVtbl
);
return
S_OK
;
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