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
7c518c3b
Commit
7c518c3b
authored
Sep 13, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/filemoniker: Remove helper used once.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a0bb9382
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
27 deletions
+10
-27
filemoniker.c
dlls/ole32/filemoniker.c
+10
-27
No files found.
dlls/ole32/filemoniker.c
View file @
7c518c3b
...
...
@@ -59,7 +59,6 @@ static inline FileMonikerImpl *impl_from_IROTData(IROTData *iface)
/* Local function used by filemoniker implementation */
static
HRESULT
FileMonikerImpl_Construct
(
FileMonikerImpl
*
iface
,
LPCOLESTR
lpszPathName
);
static
HRESULT
FileMonikerImpl_Destroy
(
FileMonikerImpl
*
iface
);
/*******************************************************************************
* FileMoniker_QueryInterface
...
...
@@ -116,21 +115,19 @@ FileMonikerImpl_AddRef(IMoniker* iface)
return
InterlockedIncrement
(
&
This
->
ref
);
}
/******************************************************************************
* FileMoniker_Release
*/
static
ULONG
WINAPI
FileMonikerImpl_Release
(
IMoniker
*
iface
)
static
ULONG
WINAPI
FileMonikerImpl_Release
(
IMoniker
*
iface
)
{
FileMonikerImpl
*
This
=
impl_from_IMoniker
(
iface
);
ULONG
ref
;
TRACE
(
"(%p)
\n
"
,
iface
);
FileMonikerImpl
*
moniker
=
impl_from_IMoniker
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
moniker
->
ref
);
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p, refcount %d)
\n
"
,
iface
,
ref
);
/* destroy the object if there are no more references to it */
if
(
ref
==
0
)
FileMonikerImpl_Destroy
(
This
);
if
(
!
ref
)
{
if
(
moniker
->
pMarshal
)
IUnknown_Release
(
moniker
->
pMarshal
);
HeapFree
(
GetProcessHeap
(),
0
,
moniker
->
filePathName
);
HeapFree
(
GetProcessHeap
(),
0
,
moniker
);
}
return
ref
;
}
...
...
@@ -453,20 +450,6 @@ FileMonikerImpl_GetSizeMax(IMoniker* iface, ULARGE_INTEGER* pcbSize)
}
/******************************************************************************
* FileMoniker_Destroy (local function)
*******************************************************************************/
HRESULT
FileMonikerImpl_Destroy
(
FileMonikerImpl
*
This
)
{
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
pMarshal
)
IUnknown_Release
(
This
->
pMarshal
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
filePathName
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
S_OK
;
}
/******************************************************************************
* FileMoniker_BindToObject
*/
static
HRESULT
WINAPI
...
...
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