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
b05fd468
Commit
b05fd468
authored
Feb 21, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use generic class factory for anti moniker.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dee64631
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
47 deletions
+15
-47
antimoniker.c
dlls/ole32/antimoniker.c
+2
-45
moniker.h
dlls/ole32/moniker.h
+1
-1
oleproxy.c
dlls/ole32/oleproxy.c
+12
-1
No files found.
dlls/ole32/antimoniker.c
View file @
b05fd468
...
...
@@ -628,30 +628,8 @@ HRESULT WINAPI CreateAntiMoniker(IMoniker **ppmk)
(
void
**
)
ppmk
);
}
static
HRESULT
WINAPI
AntiMonikerCF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
IClassFactory_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
AntiMonikerCF_AddRef
(
LPCLASSFACTORY
iface
)
{
return
2
;
/* non-heap based object */
}
static
ULONG
WINAPI
AntiMonikerCF_Release
(
LPCLASSFACTORY
iface
)
{
return
1
;
/* non-heap based object */
}
static
HRESULT
WINAPI
AntiMonikerCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pUnk
,
REFIID
riid
,
LPVOID
*
ppv
)
HRESULT
WINAPI
AntiMoniker_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pUnk
,
REFIID
riid
,
void
**
ppv
)
{
IMoniker
*
pMoniker
;
HRESULT
hr
;
...
...
@@ -674,24 +652,3 @@ static HRESULT WINAPI AntiMonikerCF_CreateInstance(LPCLASSFACTORY iface,
return
hr
;
}
static
HRESULT
WINAPI
AntiMonikerCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
fLock
)
{
FIXME
(
"(%d), stub!
\n
"
,
fLock
);
return
S_OK
;
}
static
const
IClassFactoryVtbl
AntiMonikerCFVtbl
=
{
AntiMonikerCF_QueryInterface
,
AntiMonikerCF_AddRef
,
AntiMonikerCF_Release
,
AntiMonikerCF_CreateInstance
,
AntiMonikerCF_LockServer
};
static
const
IClassFactoryVtbl
*
AntiMonikerCF
=
&
AntiMonikerCFVtbl
;
HRESULT
AntiMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
)
{
return
IClassFactory_QueryInterface
((
IClassFactory
*
)
&
AntiMonikerCF
,
riid
,
ppv
);
}
dlls/ole32/moniker.h
View file @
b05fd468
...
...
@@ -32,7 +32,7 @@ DEFINE_OLEGUID( CLSID_PointerMoniker, 0x306, 0, 0 );
HRESULT
WINAPI
FileMoniker_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pUnk
,
REFIID
riid
,
void
**
ppv
);
HRESULT
WINAPI
ItemMoniker_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pUnk
,
REFIID
riid
,
void
**
ppv
);
HRESULT
AntiMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
AntiMoniker_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pUnk
,
REFIID
riid
,
void
**
ppv
)
;
HRESULT
CompositeMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
ClassMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
PointerMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
...
...
dlls/ole32/oleproxy.c
View file @
b05fd468
...
...
@@ -95,6 +95,17 @@ static const IClassFactoryVtbl ItemMonikerCFVtbl =
static
IClassFactory
ItemMonikerCF
=
{
&
ItemMonikerCFVtbl
};
static
const
IClassFactoryVtbl
AntiMonikerCFVtbl
=
{
ClassFactory_QueryInterface
,
ClassFactory_AddRef
,
ClassFactory_Release
,
AntiMoniker_CreateInstance
,
ClassFactory_LockServer
};
static
IClassFactory
AntiMonikerCF
=
{
&
AntiMonikerCFVtbl
};
/***********************************************************************
* DllGetClassObject [OLE32.@]
*/
...
...
@@ -116,7 +127,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv)
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_ItemMoniker
))
return
IClassFactory_QueryInterface
(
&
ItemMonikerCF
,
iid
,
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_AntiMoniker
))
return
AntiMonikerCF_Create
(
iid
,
ppv
);
return
IClassFactory_QueryInterface
(
&
AntiMonikerCF
,
iid
,
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_CompositeMoniker
))
return
CompositeMonikerCF_Create
(
iid
,
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_ClassMoniker
))
...
...
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