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
c1abc5a8
Commit
c1abc5a8
authored
Jan 22, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix bind speed used in ParseDisplayName() for item moniker.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a456e8ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
28 deletions
+18
-28
itemmoniker.c
dlls/ole32/itemmoniker.c
+18
-28
No files found.
dlls/ole32/itemmoniker.c
View file @
c1abc5a8
...
...
@@ -771,45 +771,35 @@ static HRESULT WINAPI ItemMonikerImpl_GetDisplayName(IMoniker* iface,
/******************************************************************************
* ItemMoniker_ParseDisplayName
******************************************************************************/
static
HRESULT
WINAPI
ItemMonikerImpl_ParseDisplayName
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
IMoniker
*
pmkToLeft
,
LPOLESTR
pszDisplayName
,
ULONG
*
pchEaten
,
IMoniker
**
ppmkOut
)
static
HRESULT
WINAPI
ItemMonikerImpl_ParseDisplayName
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
IMoniker
*
pmkToLeft
,
LPOLESTR
displayname
,
ULONG
*
eaten
,
IMoniker
**
ppmkOut
)
{
ItemMonikerImpl
*
This
=
impl_from_IMoniker
(
iface
);
IOleItemContainer
*
poic
=
0
;
IParseDisplayName
*
ppdn
=
0
;
IOleItemContainer
*
container
;
IParseDisplayName
*
parser
;
LPOLESTR
displayName
;
HRESULT
res
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
pszDisplayName
));
HRESULT
hr
;
/* If pmkToLeft is NULL, this method returns MK_E_SYNTAX */
if
(
pmkToLeft
==
NULL
)
TRACE
(
"%p, %p, %p, %s, %p, %p.
\n
"
,
iface
,
pbc
,
pmkToLeft
,
debugstr_w
(
displayname
),
eaten
,
ppmkOut
);
if
(
!
pmkToLeft
)
return
MK_E_SYNTAX
;
else
{
/* Otherwise, the method calls IMoniker::BindToObject on the pmkToLeft parameter, requesting an */
/* IParseDisplayName interface pointer to the object identified by the moniker, and passes the display */
/* name to IParseDisplayName::ParseDisplayName */
res
=
IMoniker_BindToObject
(
pmkToLeft
,
pbc
,
NULL
,
&
IID_IOleItemContainer
,(
void
**
)
&
poic
);
if
(
SUCCEEDED
(
res
)){
res
=
IOleItemContainer_GetObject
(
poic
,
This
->
itemName
,
BINDSPEED_MODERATE
,
pbc
,
&
IID_IParseDisplayName
,(
void
**
)
&
ppdn
);
hr
=
IMoniker_BindToObject
(
pmkToLeft
,
pbc
,
NULL
,
&
IID_IOleItemContainer
,
(
void
**
)
&
container
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IOleItemContainer_GetObject
(
container
,
This
->
itemName
,
get_bind_speed_from_bindctx
(
pbc
),
pbc
,
&
IID_IParseDisplayName
,
(
void
**
)
&
parser
);
res
=
IMoniker_GetDisplayName
(
iface
,
pbc
,
NULL
,
&
displayName
);
hr
=
IMoniker_GetDisplayName
(
iface
,
pbc
,
NULL
,
&
displayName
);
res
=
IParseDisplayName_ParseDisplayName
(
ppdn
,
pbc
,
displayName
,
pchEaten
,
ppmkOut
);
hr
=
IParseDisplayName_ParseDisplayName
(
parser
,
pbc
,
displayName
,
eaten
,
ppmkOut
);
IOleItemContainer_Release
(
poic
);
IParseDisplayName_Release
(
ppdn
);
}
IOleItemContainer_Release
(
container
);
IParseDisplayName_Release
(
parser
);
}
return
res
;
return
hr
;
}
/******************************************************************************
...
...
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