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
39e80379
Commit
39e80379
authored
Jan 14, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
objsel: COM cleanup for the IClassFactory iface.
parent
1c35951f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
factory.c
dlls/objsel/factory.c
+8
-3
objsel.c
dlls/objsel/objsel.c
+1
-1
objsel_private.h
dlls/objsel/objsel_private.h
+1
-1
No files found.
dlls/objsel/factory.c
View file @
39e80379
...
@@ -26,6 +26,11 @@
...
@@ -26,6 +26,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
objsel
);
WINE_DEFAULT_DEBUG_CHANNEL
(
objsel
);
static
inline
ClassFactoryImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ClassFactoryImpl
,
IClassFactory_iface
);
}
/**********************************************************************
/**********************************************************************
* OBJSEL_IClassFactory_QueryInterface (also IUnknown)
* OBJSEL_IClassFactory_QueryInterface (also IUnknown)
*/
*/
...
@@ -60,7 +65,7 @@ static HRESULT WINAPI OBJSEL_IClassFactory_QueryInterface(
...
@@ -60,7 +65,7 @@ static HRESULT WINAPI OBJSEL_IClassFactory_QueryInterface(
*/
*/
static
ULONG
WINAPI
OBJSEL_IClassFactory_AddRef
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
OBJSEL_IClassFactory_AddRef
(
LPCLASSFACTORY
iface
)
{
{
ClassFactoryImpl
*
This
=
(
ClassFactoryImpl
*
)
iface
;
ClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
...
@@ -83,7 +88,7 @@ static ULONG WINAPI OBJSEL_IClassFactory_AddRef(LPCLASSFACTORY iface)
...
@@ -83,7 +88,7 @@ static ULONG WINAPI OBJSEL_IClassFactory_AddRef(LPCLASSFACTORY iface)
*/
*/
static
ULONG
WINAPI
OBJSEL_IClassFactory_Release
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
OBJSEL_IClassFactory_Release
(
LPCLASSFACTORY
iface
)
{
{
ClassFactoryImpl
*
This
=
(
ClassFactoryImpl
*
)
iface
;
ClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
...
@@ -160,4 +165,4 @@ static IClassFactoryVtbl IClassFactory_Vtbl =
...
@@ -160,4 +165,4 @@ static IClassFactoryVtbl IClassFactory_Vtbl =
* static ClassFactory instance
* static ClassFactory instance
*/
*/
ClassFactoryImpl
OBJSEL_ClassFactory
=
{
&
IClassFactory_Vtbl
,
0
};
ClassFactoryImpl
OBJSEL_ClassFactory
=
{
{
&
IClassFactory_Vtbl
}
,
0
};
dlls/objsel/objsel.c
View file @
39e80379
...
@@ -54,7 +54,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
...
@@ -54,7 +54,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
*
ppv
=
NULL
;
*
ppv
=
NULL
;
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_DsObjectPicker
))
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_DsObjectPicker
))
return
IClassFactory_QueryInterface
(
(
IClassFactory
*
)
&
OBJSEL_ClassFactory
,
iid
,
ppv
);
return
IClassFactory_QueryInterface
(
&
OBJSEL_ClassFactory
.
IClassFactory_iface
,
iid
,
ppv
);
FIXME
(
"CLSID: %s, IID: %s
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
));
FIXME
(
"CLSID: %s, IID: %s
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
));
return
CLASS_E_CLASSNOTAVAILABLE
;
return
CLASS_E_CLASSNOTAVAILABLE
;
...
...
dlls/objsel/objsel_private.h
View file @
39e80379
...
@@ -49,7 +49,7 @@ extern LONG dll_refs;
...
@@ -49,7 +49,7 @@ extern LONG dll_refs;
*/
*/
typedef
struct
typedef
struct
{
{
IClassFactory
Vtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
LONG
ref
;
LONG
ref
;
}
ClassFactoryImpl
;
}
ClassFactoryImpl
;
...
...
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