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
fda99c0f
Commit
fda99c0f
authored
Jan 05, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: The object class is immutable in a DirectMusicObject.
parent
5771ff89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
collection.c
dlls/dmusic/collection.c
+8
-3
No files found.
dlls/dmusic/collection.c
View file @
fda99c0f
...
...
@@ -189,7 +189,9 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_GetDescripto
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_SetDescriptor
(
LPDIRECTMUSICOBJECT
iface
,
LPDMUS_OBJECTDESC
pDesc
)
{
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicObject
(
iface
);
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicObject
(
iface
);
HRESULT
ret
=
S_OK
;
TRACE
(
"(%p, %p)
\n
"
,
iface
,
pDesc
);
...
...
@@ -206,7 +208,10 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_SetDescripto
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_OBJECT
)
This
->
pDesc
->
guidObject
=
pDesc
->
guidObject
;
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_CLASS
)
This
->
pDesc
->
guidClass
=
pDesc
->
guidClass
;
{
pDesc
->
dwValidData
&=
~
DMUS_OBJ_CLASS
;
ret
=
S_FALSE
;
}
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_NAME
)
lstrcpynW
(
This
->
pDesc
->
wszName
,
pDesc
->
wszName
,
DMUS_MAX_NAME
);
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_CATEGORY
)
...
...
@@ -229,7 +234,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_SetDescripto
/* add new flags */
This
->
pDesc
->
dwValidData
|=
pDesc
->
dwValidData
;
return
S_OK
;
return
ret
;
}
static
HRESULT
read_from_stream
(
IStream
*
stream
,
void
*
data
,
ULONG
size
)
...
...
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