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
09adcee2
Commit
09adcee2
authored
Aug 29, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix various missing Release calls on monikers.
parent
35d6217d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
compositemoniker.c
dlls/ole32/compositemoniker.c
+10
-18
No files found.
dlls/ole32/compositemoniker.c
View file @
09adcee2
...
@@ -552,6 +552,7 @@ CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker)
...
@@ -552,6 +552,7 @@ CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker)
IEnumMoniker
*
enumMoniker1
,
*
enumMoniker2
;
IEnumMoniker
*
enumMoniker1
,
*
enumMoniker2
;
IMoniker
*
tempMk1
,
*
tempMk2
;
IMoniker
*
tempMk1
,
*
tempMk2
;
HRESULT
res1
,
res2
,
res
;
HRESULT
res1
,
res2
,
res
;
BOOL
done
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pmkOtherMoniker
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pmkOtherMoniker
);
...
@@ -567,27 +568,18 @@ CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker)
...
@@ -567,27 +568,18 @@ CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker)
IMoniker_Enum
(
iface
,
TRUE
,
&
enumMoniker2
);
IMoniker_Enum
(
iface
,
TRUE
,
&
enumMoniker2
);
while
(
1
)
{
do
{
res1
=
IEnumMoniker_Next
(
enumMoniker1
,
1
,
&
tempMk1
,
NULL
);
res1
=
IEnumMoniker_Next
(
enumMoniker1
,
1
,
&
tempMk1
,
NULL
);
res2
=
IEnumMoniker_Next
(
enumMoniker2
,
1
,
&
tempMk2
,
NULL
);
res2
=
IEnumMoniker_Next
(
enumMoniker2
,
1
,
&
tempMk2
,
NULL
);
if
((
res1
==
S_OK
)
&&
(
res2
==
S_OK
)){
if
((
res1
==
S_OK
)
&&
(
res2
==
S_OK
)){
done
=
(
res
=
IMoniker_IsEqual
(
tempMk1
,
tempMk2
))
==
S_FALSE
;
if
(
IMoniker_IsEqual
(
tempMk1
,
tempMk2
)
==
S_FALSE
){
res
=
S_FALSE
;
break
;
}
else
continue
;
}
}
else
if
(
(
res1
==
S_FALSE
)
&&
(
res2
==
S_FALSE
)
){
else
res
=
S_OK
;
{
break
;
res
=
(
res1
==
S_FALSE
)
&&
(
res2
==
S_FALSE
);
}
done
=
TRUE
;
else
{
res
=
S_FALSE
;
break
;
}
}
if
(
res1
==
S_OK
)
if
(
res1
==
S_OK
)
...
@@ -595,7 +587,7 @@ CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker)
...
@@ -595,7 +587,7 @@ CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker)
if
(
res2
==
S_OK
)
if
(
res2
==
S_OK
)
IMoniker_Release
(
tempMk2
);
IMoniker_Release
(
tempMk2
);
}
}
while
(
!
done
);
IEnumMoniker_Release
(
enumMoniker1
);
IEnumMoniker_Release
(
enumMoniker1
);
IEnumMoniker_Release
(
enumMoniker2
);
IEnumMoniker_Release
(
enumMoniker2
);
...
@@ -989,12 +981,12 @@ static VOID GetAfterCommonPrefix(IMoniker* pGenMk,IMoniker* commonMk,IMoniker**
...
@@ -989,12 +981,12 @@ static VOID GetAfterCommonPrefix(IMoniker* pGenMk,IMoniker* commonMk,IMoniker**
nbRestMk
++
;
nbRestMk
++
;
IMoniker_Release
(
tempMk1
);
IMoniker_Release
(
tempMk1
);
IMoniker_Release
(
tempMk
1
);
IMoniker_Release
(
tempMk
2
);
break
;
break
;
}
}
IMoniker_Release
(
tempMk1
);
IMoniker_Release
(
tempMk1
);
IMoniker_Release
(
tempMk
1
);
IMoniker_Release
(
tempMk
2
);
}
}
}
}
else
{
else
{
...
...
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