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
7370bed7
Commit
7370bed7
authored
Jun 10, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dswave: Get rid of the extra pointer to a DMUS_OBJECTDESC.
parent
834a92cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
dswave.c
dlls/dswave/dswave.c
+10
-12
No files found.
dlls/dswave/dswave.c
View file @
7370bed7
...
@@ -34,7 +34,6 @@ typedef struct IDirectMusicWaveImpl {
...
@@ -34,7 +34,6 @@ typedef struct IDirectMusicWaveImpl {
IUnknown
IUnknown_iface
;
IUnknown
IUnknown_iface
;
struct
dmobject
dmobj
;
struct
dmobject
dmobj
;
LONG
ref
;
LONG
ref
;
LPDMUS_OBJECTDESC
pDesc
;
}
IDirectMusicWaveImpl
;
}
IDirectMusicWaveImpl
;
/* IDirectMusicWaveImpl IUnknown part: */
/* IDirectMusicWaveImpl IUnknown part: */
...
@@ -275,8 +274,8 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
...
@@ -275,8 +274,8 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
FIXME
(
"(%p, %p): loading not implemented yet (only descriptor is loaded)
\n
"
,
This
,
pStm
);
FIXME
(
"(%p, %p): loading not implemented yet (only descriptor is loaded)
\n
"
,
This
,
pStm
);
/* FIXME: should this be determined from stream? */
/* FIXME: should this be determined from stream? */
This
->
pDesc
->
dwValidData
|=
DMUS_OBJ_CLASS
;
This
->
dmobj
.
desc
.
dwValidData
|=
DMUS_OBJ_CLASS
;
This
->
pDesc
->
guidClass
=
CLSID_DirectMusicSegment
;
This
->
dmobj
.
desc
.
guidClass
=
CLSID_DirectMusicSegment
;
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
...
@@ -295,20 +294,20 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
...
@@ -295,20 +294,20 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
switch
(
Chunk
.
fccID
)
{
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_GUID_CHUNK
:
{
case
DMUS_FOURCC_GUID_CHUNK
:
{
TRACE_
(
dmfile
)(
": GUID chunk
\n
"
);
TRACE_
(
dmfile
)(
": GUID chunk
\n
"
);
This
->
pDesc
->
dwValidData
|=
DMUS_OBJ_OBJECT
;
This
->
dmobj
.
desc
.
dwValidData
|=
DMUS_OBJ_OBJECT
;
IStream_Read
(
pStm
,
&
This
->
pDesc
->
guidObject
,
Chunk
.
dwSize
,
NULL
);
IStream_Read
(
pStm
,
&
This
->
dmobj
.
desc
.
guidObject
,
Chunk
.
dwSize
,
NULL
);
break
;
break
;
}
}
case
DMUS_FOURCC_VERSION_CHUNK
:
{
case
DMUS_FOURCC_VERSION_CHUNK
:
{
TRACE_
(
dmfile
)(
": version chunk
\n
"
);
TRACE_
(
dmfile
)(
": version chunk
\n
"
);
This
->
pDesc
->
dwValidData
|=
DMUS_OBJ_VERSION
;
This
->
dmobj
.
desc
.
dwValidData
|=
DMUS_OBJ_VERSION
;
IStream_Read
(
pStm
,
&
This
->
pDesc
->
vVersion
,
Chunk
.
dwSize
,
NULL
);
IStream_Read
(
pStm
,
&
This
->
dmobj
.
desc
.
vVersion
,
Chunk
.
dwSize
,
NULL
);
break
;
break
;
}
}
case
DMUS_FOURCC_CATEGORY_CHUNK
:
{
case
DMUS_FOURCC_CATEGORY_CHUNK
:
{
TRACE_
(
dmfile
)(
": category chunk
\n
"
);
TRACE_
(
dmfile
)(
": category chunk
\n
"
);
This
->
pDesc
->
dwValidData
|=
DMUS_OBJ_CATEGORY
;
This
->
dmobj
.
desc
.
dwValidData
|=
DMUS_OBJ_CATEGORY
;
IStream_Read
(
pStm
,
This
->
pDesc
->
wszCategory
,
Chunk
.
dwSize
,
NULL
);
IStream_Read
(
pStm
,
This
->
dmobj
.
desc
.
wszCategory
,
Chunk
.
dwSize
,
NULL
);
break
;
break
;
}
}
case
FOURCC_LIST
:
{
case
FOURCC_LIST
:
{
...
@@ -330,8 +329,8 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
...
@@ -330,8 +329,8 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
case
mmioFOURCC
(
'I'
,
'N'
,
'A'
,
'M'
):
case
mmioFOURCC
(
'I'
,
'N'
,
'A'
,
'M'
):
case
DMUS_FOURCC_UNAM_CHUNK
:
{
case
DMUS_FOURCC_UNAM_CHUNK
:
{
TRACE_
(
dmfile
)(
": name chunk
\n
"
);
TRACE_
(
dmfile
)(
": name chunk
\n
"
);
This
->
pDesc
->
dwValidData
|=
DMUS_OBJ_NAME
;
This
->
dmobj
.
desc
.
dwValidData
|=
DMUS_OBJ_NAME
;
IStream_Read
(
pStm
,
This
->
pDesc
->
wszName
,
Chunk
.
dwSize
,
NULL
);
IStream_Read
(
pStm
,
This
->
dmobj
.
desc
.
wszName
,
Chunk
.
dwSize
,
NULL
);
break
;
break
;
}
}
case
mmioFOURCC
(
'I'
,
'A'
,
'R'
,
'T'
):
case
mmioFOURCC
(
'I'
,
'A'
,
'R'
,
'T'
):
...
@@ -439,7 +438,6 @@ HRESULT WINAPI create_dswave(REFIID lpcGUID, void **ppobj)
...
@@ -439,7 +438,6 @@ HRESULT WINAPI create_dswave(REFIID lpcGUID, void **ppobj)
dmobject_init
(
&
obj
->
dmobj
,
&
CLSID_DirectSoundWave
,
&
obj
->
IUnknown_iface
);
dmobject_init
(
&
obj
->
dmobj
,
&
CLSID_DirectSoundWave
,
&
obj
->
IUnknown_iface
);
obj
->
dmobj
.
IDirectMusicObject_iface
.
lpVtbl
=
&
dmobject_vtbl
;
obj
->
dmobj
.
IDirectMusicObject_iface
.
lpVtbl
=
&
dmobject_vtbl
;
obj
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
obj
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
obj
->
pDesc
=
&
obj
->
dmobj
.
desc
;
DSWAVE_LockModule
();
DSWAVE_LockModule
();
hr
=
IUnknown_QueryInterface
(
&
obj
->
IUnknown_iface
,
lpcGUID
,
ppobj
);
hr
=
IUnknown_QueryInterface
(
&
obj
->
IUnknown_iface
,
lpcGUID
,
ppobj
);
...
...
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