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
f041c2c5
Commit
f041c2c5
authored
Dec 31, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Call moniker methods with proper wrappers.
parent
0e7e8787
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
22 deletions
+13
-22
classmoniker.c
dlls/ole32/classmoniker.c
+13
-22
No files found.
dlls/ole32/classmoniker.c
View file @
f041c2c5
...
...
@@ -119,20 +119,6 @@ static ULONG WINAPI ClassMoniker_AddRef(IMoniker* iface)
}
/******************************************************************************
* ClassMoniker_Destroy (local function)
*******************************************************************************/
static
HRESULT
ClassMoniker_Destroy
(
ClassMoniker
*
This
)
{
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
pMarshal
)
IUnknown_Release
(
This
->
pMarshal
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
S_OK
;
}
/******************************************************************************
* ClassMoniker_Release
******************************************************************************/
static
ULONG
WINAPI
ClassMoniker_Release
(
IMoniker
*
iface
)
...
...
@@ -145,7 +131,11 @@ static ULONG WINAPI ClassMoniker_Release(IMoniker* iface)
ref
=
InterlockedDecrement
(
&
This
->
ref
);
/* destroy the object if there are no more references to it */
if
(
ref
==
0
)
ClassMoniker_Destroy
(
This
);
if
(
ref
==
0
)
{
if
(
This
->
pMarshal
)
IUnknown_Release
(
This
->
pMarshal
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
...
...
@@ -277,7 +267,7 @@ static HRESULT WINAPI ClassMoniker_BindToStorage(IMoniker* iface,
VOID
**
ppvResult
)
{
TRACE
(
"(%p,%p,%p,%p)
\n
"
,
pbc
,
pmkToLeft
,
riid
,
ppvResult
);
return
Class
Moniker_BindToObject
(
iface
,
pbc
,
pmkToLeft
,
riid
,
ppvResult
);
return
I
Moniker_BindToObject
(
iface
,
pbc
,
pmkToLeft
,
riid
,
ppvResult
);
}
/******************************************************************************
...
...
@@ -294,7 +284,7 @@ static HRESULT WINAPI ClassMoniker_Reduce(IMoniker* iface,
if
(
!
ppmkReduced
)
return
E_POINTER
;
Class
Moniker_AddRef
(
iface
);
I
Moniker_AddRef
(
iface
);
*
ppmkReduced
=
iface
;
...
...
@@ -600,7 +590,7 @@ static HRESULT WINAPI ClassMonikerROTData_QueryInterface(IROTData *iface,REFIID
TRACE
(
"(%p,%p,%p)
\n
"
,
iface
,
riid
,
ppvObject
);
return
Class
Moniker_QueryInterface
(
&
This
->
IMoniker_iface
,
riid
,
ppvObject
);
return
I
Moniker_QueryInterface
(
&
This
->
IMoniker_iface
,
riid
,
ppvObject
);
}
/***********************************************************************
...
...
@@ -612,7 +602,7 @@ static ULONG WINAPI ClassMonikerROTData_AddRef(IROTData *iface)
TRACE
(
"(%p)
\n
"
,
iface
);
return
Class
Moniker_AddRef
(
&
This
->
IMoniker_iface
);
return
I
Moniker_AddRef
(
&
This
->
IMoniker_iface
);
}
/***********************************************************************
...
...
@@ -624,7 +614,7 @@ static ULONG WINAPI ClassMonikerROTData_Release(IROTData* iface)
TRACE
(
"(%p)
\n
"
,
iface
);
return
Class
Moniker_Release
(
&
This
->
IMoniker_iface
);
return
I
Moniker_Release
(
&
This
->
IMoniker_iface
);
}
/******************************************************************************
...
...
@@ -874,9 +864,10 @@ static const IClassFactoryVtbl ClassMonikerCFVtbl =
ClassMonikerCF_CreateInstance
,
ClassMonikerCF_LockServer
};
static
const
IClassFactoryVtbl
*
ClassMonikerCF
=
&
ClassMonikerCFVtbl
;
static
IClassFactory
ClassMonikerCF
=
{
&
ClassMonikerCFVtbl
};
HRESULT
ClassMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
)
{
return
IClassFactory_QueryInterface
(
(
IClassFactory
*
)
&
ClassMonikerCF
,
riid
,
ppv
);
return
IClassFactory_QueryInterface
(
&
ClassMonikerCF
,
riid
,
ppv
);
}
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