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
65942c17
Commit
65942c17
authored
Jan 15, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmstyle: None of the COM classes support aggregation.
parent
bb356e23
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
27 deletions
+37
-27
auditiontrack.c
dlls/dmstyle/auditiontrack.c
+2
-1
chordtrack.c
dlls/dmstyle/chordtrack.c
+2
-1
commandtrack.c
dlls/dmstyle/commandtrack.c
+2
-1
dmstyle_main.c
dlls/dmstyle/dmstyle_main.c
+16
-13
dmstyle_private.h
dlls/dmstyle/dmstyle_private.h
+7
-7
motiftrack.c
dlls/dmstyle/motiftrack.c
+2
-1
mutetrack.c
dlls/dmstyle/mutetrack.c
+2
-1
style.c
dlls/dmstyle/style.c
+2
-1
styletrack.c
dlls/dmstyle/styletrack.c
+2
-1
No files found.
dlls/dmstyle/auditiontrack.c
View file @
65942c17
...
...
@@ -270,7 +270,8 @@ static const IPersistStreamVtbl DirectMusicAuditionTrack_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicAuditionTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmauditiontrack
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicAuditionTrack
*
track
;
track
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicAuditionTrack
));
...
...
dlls/dmstyle/chordtrack.c
View file @
65942c17
...
...
@@ -399,7 +399,8 @@ static const IPersistStreamVtbl DirectMusicChordTrack_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicChordTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmchordtrack
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicChordTrack
*
track
;
track
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicChordTrack
));
...
...
dlls/dmstyle/commandtrack.c
View file @
65942c17
...
...
@@ -333,7 +333,8 @@ static const IPersistStreamVtbl DirectMusicCommandTrack_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicCommandTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmcommandtrack
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicCommandTrack
*
track
;
track
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicCommandTrack
));
...
...
dlls/dmstyle/dmstyle_main.c
View file @
65942c17
...
...
@@ -27,12 +27,12 @@ LONG DMSTYLE_refCount = 0;
typedef
struct
{
IClassFactory
IClassFactory_iface
;
HRESULT
WINAPI
(
*
fnCreateInstance
)(
REFIID
riid
,
void
**
ppv
,
IUnknown
*
pUnkOuter
);
HRESULT
WINAPI
(
*
fnCreateInstance
)(
REFIID
riid
,
void
**
ret_iface
);
}
IClassFactoryImpl
;
static
HRESULT
WINAPI
create_direct_music_section
(
REFIID
riid
,
void
**
ppv
,
IUnknown
*
pUnkOuter
)
static
HRESULT
WINAPI
create_direct_music_section
(
REFIID
riid
,
void
**
ret_iface
)
{
FIXME
(
"(%
p, %s, %p) stub
\n
"
,
pUnkOuter
,
debugstr_dmguid
(
riid
),
ppv
);
FIXME
(
"(%
s, %p) stub
\n
"
,
debugstr_dmguid
(
riid
),
ret_iface
);
return
E_NOINTERFACE
;
}
...
...
@@ -86,7 +86,12 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
TRACE
(
"(%p, %s, %p)
\n
"
,
pUnkOuter
,
debugstr_dmguid
(
riid
),
ppv
);
return
This
->
fnCreateInstance
(
riid
,
ppv
,
pUnkOuter
);
if
(
pUnkOuter
)
{
*
ppv
=
NULL
;
return
CLASS_E_NOAGGREGATION
;
}
return
This
->
fnCreateInstance
(
riid
,
ppv
);
}
static
HRESULT
WINAPI
ClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
dolock
)
...
...
@@ -110,15 +115,13 @@ static const IClassFactoryVtbl classfactory_vtbl = {
};
static
IClassFactoryImpl
Section_CF
=
{{
&
classfactory_vtbl
},
create_direct_music_section
};
static
IClassFactoryImpl
Style_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicStyleImpl
};
static
IClassFactoryImpl
ChordTrack_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicChordTrack
};
static
IClassFactoryImpl
CommandTrack_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicCommandTrack
};
static
IClassFactoryImpl
StyleTrack_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicStyleTrack
};
static
IClassFactoryImpl
MotifTrack_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicMotifTrack
};
static
IClassFactoryImpl
AuditionTrack_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicAuditionTrack
};
static
IClassFactoryImpl
MuteTrack_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicMuteTrack
};
static
IClassFactoryImpl
Style_CF
=
{{
&
classfactory_vtbl
},
create_dmstyle
};
static
IClassFactoryImpl
ChordTrack_CF
=
{{
&
classfactory_vtbl
},
create_dmchordtrack
};
static
IClassFactoryImpl
CommandTrack_CF
=
{{
&
classfactory_vtbl
},
create_dmcommandtrack
};
static
IClassFactoryImpl
StyleTrack_CF
=
{{
&
classfactory_vtbl
},
create_dmstyletrack
};
static
IClassFactoryImpl
MotifTrack_CF
=
{{
&
classfactory_vtbl
},
create_dmmotiftrack
};
static
IClassFactoryImpl
AuditionTrack_CF
=
{{
&
classfactory_vtbl
},
create_dmauditiontrack
};
static
IClassFactoryImpl
MuteTrack_CF
=
{{
&
classfactory_vtbl
},
create_dmmutetrack
};
/******************************************************************
* DllMain
...
...
dlls/dmstyle/dmstyle_private.h
View file @
65942c17
...
...
@@ -58,7 +58,13 @@ typedef struct IDirectMusicStyleTrack IDirectMusicStyleTrack;
/*****************************************************************************
* ClassFactory
*/
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicStyleImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmstyle
(
REFIID
lpcGUID
,
LPVOID
*
ppobj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmauditiontrack
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmchordtrack
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmcommandtrack
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmmotiftrack
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmmutetrack
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmstyletrack
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* Auxiliary definitions
...
...
@@ -92,12 +98,6 @@ typedef struct _DMUS_PRIVATE_STYLE_ITEM {
IDirectMusicStyle8
*
pObject
;
}
DMUS_PRIVATE_STYLE_ITEM
,
*
LPDMUS_PRIVATE_STYLE_ITEM
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicAuditionTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicChordTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicCommandTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicMotifTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicMuteTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicStyleTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* IDirectMusicStyle8Impl implementation structure
...
...
dlls/dmstyle/motiftrack.c
View file @
65942c17
...
...
@@ -276,7 +276,8 @@ static const IPersistStreamVtbl DirectMusicMotifTrack_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicMotifTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmmotiftrack
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicMotifTrack
*
track
;
track
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicMotifTrack
));
...
...
dlls/dmstyle/mutetrack.c
View file @
65942c17
...
...
@@ -273,7 +273,8 @@ static const IPersistStreamVtbl DirectMusicMuteTrack_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicMuteTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmmutetrack
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicMuteTrack
*
track
;
track
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicMuteTrack
));
...
...
dlls/dmstyle/style.c
View file @
65942c17
...
...
@@ -1086,7 +1086,8 @@ static const IPersistStreamVtbl DirectMusicStyle8_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicStyleImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmstyle
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicStyle8Impl
*
obj
;
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicStyle8Impl
));
...
...
dlls/dmstyle/styletrack.c
View file @
65942c17
...
...
@@ -462,7 +462,8 @@ static const IPersistStreamVtbl DirectMusicStyleTrack_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicStyleTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmstyletrack
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicStyleTrack
*
track
;
track
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicStyleTrack
));
...
...
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