Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
91afe981
Commit
91afe981
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: Fix infinite recursion in CompositeMonikerImpl_BindToStorage.
parent
efe9ceda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
compositemoniker.c
dlls/ole32/compositemoniker.c
+23
-15
No files found.
dlls/ole32/compositemoniker.c
View file @
91afe981
...
...
@@ -402,7 +402,7 @@ CompositeMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc,
IMoniker
*
pmkToLeft
,
REFIID
riid
,
VOID
**
ppvResult
)
{
HRESULT
res
;
IMoniker
*
tempMk
,
*
antiMk
,
*
mostRigthMk
;
IMoniker
*
tempMk
,
*
antiMk
,
*
mostRigthMk
,
*
leftMk
;
IEnumMoniker
*
enumMoniker
;
TRACE
(
"(%p,%p,%p,%p,%p)
\n
"
,
iface
,
pbc
,
pmkToLeft
,
riid
,
ppvResult
);
...
...
@@ -412,26 +412,34 @@ CompositeMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc,
/* This method recursively calls BindToStorage on the rightmost component of the composite, */
/* passing the rest of the composite as the pmkToLeft parameter for that call. */
if
(
pmkToLeft
!=
NULL
){
if
(
pmkToLeft
)
{
res
=
IMoniker_ComposeWith
(
pmkToLeft
,
iface
,
FALSE
,
&
leftMk
);
if
(
FAILED
(
res
))
return
res
;
}
else
leftMk
=
iface
;
IMoniker_Enum
(
iface
,
FALSE
,
&
enumMoniker
);
IEnumMoniker_Next
(
enumMoniker
,
1
,
&
mostRigthMk
,
NULL
);
IEnumMoniker_Release
(
enumMoniker
);
IMoniker_Enum
(
iface
,
FALSE
,
&
enumMoniker
);
IEnumMoniker_Next
(
enumMoniker
,
1
,
&
mostRigthMk
,
NULL
);
IEnumMoniker_Release
(
enumMoniker
);
res
=
CreateAntiMoniker
(
&
antiMk
);
res
=
IMoniker_ComposeWith
(
iface
,
antiMk
,
0
,
&
tempMk
);
IMoniker_Release
(
antiMk
);
res
=
CreateAntiMoniker
(
&
antiMk
);
if
(
FAILED
(
res
))
return
res
;
res
=
IMoniker_ComposeWith
(
leftMk
,
antiMk
,
0
,
&
tempMk
);
if
(
FAILED
(
res
))
return
res
;
IMoniker_Release
(
antiMk
);
res
=
IMoniker_BindToStorage
(
mostRigthMk
,
pbc
,
tempMk
,
riid
,
ppvResult
);
res
=
IMoniker_BindToStorage
(
mostRigthMk
,
pbc
,
tempMk
,
riid
,
ppvResult
);
IMoniker_Release
(
tempMk
);
IMoniker_Release
(
tempMk
);
IMoniker_Release
(
mostRigthMk
);
IMoniker_Release
(
mostRigthMk
);
return
res
;
}
else
return
IMoniker_BindToStorage
(
iface
,
pbc
,
NULL
,
riid
,
ppvResult
)
;
if
(
pmkToLeft
)
IMoniker_Release
(
leftMk
);
return
res
;
}
/******************************************************************************
...
...
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