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
917d5eab
Commit
917d5eab
authored
Mar 12, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: None of the COM classes support aggregation.
parent
7442abde
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
+17
-12
container.c
dlls/dmloader/container.c
+2
-1
dmloader_main.c
dlls/dmloader/dmloader_main.c
+11
-7
dmloader_private.h
dlls/dmloader/dmloader_private.h
+2
-2
loader.c
dlls/dmloader/loader.c
+2
-2
No files found.
dlls/dmloader/container.c
View file @
917d5eab
...
...
@@ -909,7 +909,8 @@ static const IPersistStreamVtbl DirectMusicContainer_PersistStream_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicContainerImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
HRESULT
WINAPI
create_dmcontainer
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicContainerImpl
*
obj
;
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicContainerImpl
));
...
...
dlls/dmloader/dmloader_main.c
View file @
917d5eab
...
...
@@ -27,7 +27,7 @@ LONG module_ref = 0;
typedef
struct
{
IClassFactory
IClassFactory_iface
;
HRESULT
WINAPI
(
*
fnCreateInstance
)(
REFIID
riid
,
void
**
ppv
,
IUnknown
*
pUnkOuter
);
HRESULT
WINAPI
(
*
fnCreateInstance
)(
REFIID
riid
,
void
**
ppv
);
}
IClassFactoryImpl
;
/******************************************************************
...
...
@@ -73,13 +73,18 @@ static ULONG WINAPI ClassFactory_Release(IClassFactory *iface)
}
static
HRESULT
WINAPI
ClassFactory_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
)
REFIID
riid
,
void
**
ret_iface
)
{
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
);
TRACE
(
"(%
p, %s, %p)
\n
"
,
pUnkOuter
,
debugstr_dmguid
(
riid
),
ppv
);
TRACE
(
"(%
s, %p)
\n
"
,
debugstr_dmguid
(
riid
),
ret_iface
);
return
This
->
fnCreateInstance
(
riid
,
ppv
,
pUnkOuter
);
if
(
pUnkOuter
)
{
*
ret_iface
=
NULL
;
return
CLASS_E_NOAGGREGATION
;
}
return
This
->
fnCreateInstance
(
riid
,
ret_iface
);
}
static
HRESULT
WINAPI
ClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
dolock
)
...
...
@@ -102,9 +107,8 @@ static const IClassFactoryVtbl classfactory_vtbl = {
ClassFactory_LockServer
};
static
IClassFactoryImpl
dm_loader_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicLoaderImpl
};
static
IClassFactoryImpl
dm_container_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicContainerImpl
};
static
IClassFactoryImpl
dm_loader_CF
=
{{
&
classfactory_vtbl
},
create_dmloader
};
static
IClassFactoryImpl
dm_container_CF
=
{{
&
classfactory_vtbl
},
create_dmcontainer
};
/******************************************************************
* DllMain
...
...
dlls/dmloader/dmloader_private.h
View file @
917d5eab
...
...
@@ -65,8 +65,8 @@ typedef struct IDirectMusicLoaderGenericStream IDirectMusicLoaderGenericStream;
/*****************************************************************************
* Creation helpers
*/
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicLoaderImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicContainerImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmloader
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
create_dmcontainer
(
REFIID
riid
,
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicLoaderFileStream
(
LPVOID
*
ppobj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicLoaderResourceStream
(
LPVOID
*
ppobj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicLoaderGenericStream
(
LPVOID
*
ppobj
)
DECLSPEC_HIDDEN
;
...
...
dlls/dmloader/loader.c
View file @
917d5eab
...
...
@@ -888,14 +888,14 @@ static HRESULT DMUSIC_GetDefaultGMPath (WCHAR wszPath[MAX_PATH]) {
}
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicLoaderImpl
(
const
GUID
*
lpcGUID
,
void
**
ppobj
,
IUnknown
*
pUnkOuter
)
HRESULT
WINAPI
create_dmloader
(
REFIID
lpcGUID
,
void
**
ppobj
)
{
IDirectMusicLoaderImpl
*
obj
;
DMUS_OBJECTDESC
Desc
;
LPWINE_LOADER_ENTRY
pDefaultDLSEntry
;
struct
list
*
pEntry
;
TRACE
(
"(%s, %p, %p)
\n
"
,
debugstr_dmguid
(
lpcGUID
),
ppobj
,
pUnkOuter
);
TRACE
(
"(%s, %p)
\n
"
,
debugstr_dmguid
(
lpcGUID
),
ppobj
);
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicLoaderImpl
));
if
(
NULL
==
obj
)
{
*
ppobj
=
NULL
;
...
...
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