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
e68e6d7d
Commit
e68e6d7d
authored
May 08, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Release all existing monikers before loading the state.
parent
785d957e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
compositemoniker.c
dlls/ole32/compositemoniker.c
+13
-3
No files found.
dlls/ole32/compositemoniker.c
View file @
e68e6d7d
...
...
@@ -137,6 +137,16 @@ CompositeMonikerImpl_AddRef(IMoniker* iface)
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
void
CompositeMonikerImpl_ReleaseMonikersInTable
(
CompositeMonikerImpl
*
This
)
{
ULONG
i
;
for
(
i
=
0
;
i
<
This
->
tabLastIndex
;
i
++
)
IMoniker_Release
(
This
->
tabMoniker
[
i
]);
This
->
tabLastIndex
=
0
;
}
/******************************************************************************
* CompositeMoniker_Release
******************************************************************************/
...
...
@@ -144,7 +154,6 @@ static ULONG WINAPI
CompositeMonikerImpl_Release
(
IMoniker
*
iface
)
{
CompositeMonikerImpl
*
This
=
(
CompositeMonikerImpl
*
)
iface
;
ULONG
i
;
ULONG
ref
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -155,8 +164,7 @@ CompositeMonikerImpl_Release(IMoniker* iface)
if
(
ref
==
0
){
/* release all the components before destroying this object */
for
(
i
=
0
;
i
<
This
->
tabLastIndex
;
i
++
)
IMoniker_Release
(
This
->
tabMoniker
[
i
]);
CompositeMonikerImpl_ReleaseMonikersInTable
(
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
tabMoniker
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -218,6 +226,8 @@ CompositeMonikerImpl_Load(IMoniker* iface,IStream* pStm)
return
E_FAIL
;
}
CompositeMonikerImpl_ReleaseMonikersInTable
(
This
);
for
(
i
=
0
;
i
<
moniker_count
;
i
++
)
{
res
=
OleLoadFromStream
(
pStm
,
&
IID_IMoniker
,(
void
**
)
&
This
->
tabMoniker
[
This
->
tabLastIndex
]);
...
...
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