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
05d18725
Commit
05d18725
authored
Jan 30, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband: None of the COM classes support aggregation.
parent
bbd71d6b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
band.c
dlls/dmband/band.c
+2
-1
bandtrack.c
dlls/dmband/bandtrack.c
+2
-1
dmband_main.c
dlls/dmband/dmband_main.c
+9
-4
dmband_private.h
dlls/dmband/dmband_private.h
+2
-3
No files found.
dlls/dmband/band.c
View file @
05d18725
...
...
@@ -687,7 +687,8 @@ static const IPersistStreamVtbl DirectMusicBand_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicBandImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmband
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicBandImpl
*
obj
;
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicBandImpl
));
...
...
dlls/dmband/bandtrack.c
View file @
05d18725
...
...
@@ -606,7 +606,8 @@ static const IPersistStreamVtbl DirectMusicBandTrack_PerststStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicBandTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmbandtrack
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicBandTrack
*
track
;
track
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicBandTrack
));
...
...
dlls/dmband/dmband_main.c
View file @
05d18725
...
...
@@ -27,7 +27,7 @@ LONG DMBAND_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
;
/******************************************************************
...
...
@@ -79,7 +79,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
)
...
...
@@ -102,8 +107,8 @@ static const IClassFactoryVtbl classfactory_vtbl = {
ClassFactory_LockServer
};
static
IClassFactoryImpl
Band_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicBandImpl
};
static
IClassFactoryImpl
BandTrack_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicBandT
rack
};
static
IClassFactoryImpl
Band_CF
=
{{
&
classfactory_vtbl
},
create_dmband
};
static
IClassFactoryImpl
BandTrack_CF
=
{{
&
classfactory_vtbl
},
create_dmbandt
rack
};
/******************************************************************
* DllMain
...
...
dlls/dmband/dmband_private.h
View file @
05d18725
...
...
@@ -52,9 +52,8 @@ typedef struct IDirectMusicBandTrack IDirectMusicBandTrack;
/*****************************************************************************
* ClassFactory
*/
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicBandImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicBandTrack
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmband
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmbandtrack
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
...
...
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