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
44400613
Commit
44400613
authored
Nov 29, 2022
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmstyle: Get rid of a no longer used function.
parent
25de40af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
73 deletions
+0
-73
dmutils.c
dlls/dmstyle/dmutils.c
+0
-72
dmutils.h
dlls/dmstyle/dmutils.h
+0
-1
No files found.
dlls/dmstyle/dmutils.c
View file @
44400613
...
...
@@ -143,75 +143,3 @@ HRESULT IDirectMusicUtils_IPersistStream_ParseUNFOGeneric (DMUS_PRIVATE_CHUNK* p
return
S_OK
;
}
HRESULT
IDirectMusicUtils_IPersistStream_ParseReference
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
,
IDirectMusicObject
**
ppObject
)
{
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
HRESULT
hr
;
DMUS_IO_REFERENCE
ref
;
DMUS_OBJECTDESC
ref_desc
;
memset
(
&
ref
,
0
,
sizeof
(
ref
));
memset
(
&
ref_desc
,
0
,
sizeof
(
ref_desc
));
if
(
pChunk
->
fccID
!=
DMUS_FOURCC_REF_LIST
)
{
ERR
(
": %s chunk should be a REF list
\n
"
,
debugstr_fourcc
(
pChunk
->
fccID
));
return
E_FAIL
;
}
ListSize
[
0
]
=
pChunk
->
dwSize
-
sizeof
(
FOURCC
);
ListCount
[
0
]
=
0
;
do
{
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
ListCount
[
0
]
+=
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
)
+
Chunk
.
dwSize
;
TRACE
(
": %s chunk (size = %ld)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
hr
=
IDirectMusicUtils_IPersistStream_ParseDescGeneric
(
&
Chunk
,
pStm
,
&
ref_desc
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
hr
==
S_FALSE
)
{
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_REF_CHUNK
:
{
TRACE
(
": Reference chunk
\n
"
);
if
(
Chunk
.
dwSize
!=
sizeof
(
DMUS_IO_REFERENCE
))
return
E_FAIL
;
IStream_Read
(
pStm
,
&
ref
,
sizeof
(
DMUS_IO_REFERENCE
),
NULL
);
TRACE
(
" - guidClassID: %s
\n
"
,
debugstr_dmguid
(
&
ref
.
guidClassID
));
TRACE
(
" - dwValidData: %lu
\n
"
,
ref
.
dwValidData
);
break
;
}
default:
{
TRACE
(
": unknown chunk (irrelevant & skipping)
\n
"
);
liMove
.
QuadPart
=
Chunk
.
dwSize
;
IStream_Seek
(
pStm
,
liMove
,
STREAM_SEEK_CUR
,
NULL
);
break
;
}
}
}
TRACE
(
": ListCount[0] = %ld < ListSize[0] = %ld
\n
"
,
ListCount
[
0
],
ListSize
[
0
]);
}
while
(
ListCount
[
0
]
<
ListSize
[
0
]);
ref_desc
.
dwValidData
|=
DMUS_OBJ_CLASS
;
ref_desc
.
guidClass
=
ref
.
guidClassID
;
TRACE
(
"** DM Reference Begin of Load ***
\n
"
);
TRACE
(
"With Desc:
\n
"
);
dump_DMUS_OBJECTDESC
(
&
ref_desc
);
{
LPDIRECTMUSICGETLOADER
pGetLoader
=
NULL
;
LPDIRECTMUSICLOADER
pLoader
=
NULL
;
IStream_QueryInterface
(
pStm
,
&
IID_IDirectMusicGetLoader
,
(
LPVOID
*
)
&
pGetLoader
);
IDirectMusicGetLoader_GetLoader
(
pGetLoader
,
&
pLoader
);
IDirectMusicGetLoader_Release
(
pGetLoader
);
hr
=
IDirectMusicLoader_GetObject
(
pLoader
,
&
ref_desc
,
&
IID_IDirectMusicObject
,
(
LPVOID
*
)
ppObject
);
IDirectMusicLoader_Release
(
pLoader
);
/* release loader */
}
TRACE
(
"** DM Reference End of Load ***
\n
"
);
return
hr
;
}
dlls/dmstyle/dmutils.h
View file @
44400613
...
...
@@ -32,6 +32,5 @@ typedef struct _DMUS_PRIVATE_CHUNK {
*/
extern
HRESULT
IDirectMusicUtils_IPersistStream_ParseDescGeneric
(
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
,
LPDMUS_OBJECTDESC
pDesc
)
DECLSPEC_HIDDEN
;
extern
HRESULT
IDirectMusicUtils_IPersistStream_ParseUNFOGeneric
(
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
,
LPDMUS_OBJECTDESC
pDesc
)
DECLSPEC_HIDDEN
;
extern
HRESULT
IDirectMusicUtils_IPersistStream_ParseReference
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
,
IDirectMusicObject
**
ppObject
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_DMUTILS_H */
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