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
b7cab789
Commit
b7cab789
authored
Sep 28, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/pointermoniker: Fix argument handling in RelativePathTo().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
19df4c56
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
pointermoniker.c
dlls/ole32/pointermoniker.c
+6
-10
moniker.c
dlls/ole32/tests/moniker.c
+18
-1
No files found.
dlls/ole32/pointermoniker.c
View file @
b7cab789
...
...
@@ -368,20 +368,16 @@ static HRESULT WINAPI PointerMonikerImpl_CommonPrefixWith(IMoniker *iface, IMoni
return
MK_E_NOPREFIX
;
}
/******************************************************************************
* PointerMoniker_RelativePathTo
******************************************************************************/
static
HRESULT
WINAPI
PointerMonikerImpl_RelativePathTo
(
IMoniker
*
iface
,
IMoniker
*
pmOther
,
IMoniker
**
ppmkRelPath
)
static
HRESULT
WINAPI
PointerMonikerImpl_RelativePathTo
(
IMoniker
*
iface
,
IMoniker
*
other
,
IMoniker
**
result
)
{
TRACE
(
"
(%p,%p,%p)
\n
"
,
iface
,
pmOther
,
ppmkRelPath
);
TRACE
(
"
%p, %p, %p.
\n
"
,
iface
,
other
,
result
);
if
(
ppmkRelPath
==
NULL
)
return
E_
POINTER
;
if
(
!
result
)
return
E_
INVALIDARG
;
*
ppmkRelPath
=
NULL
;
*
result
=
NULL
;
return
E_NOTIMPL
;
return
other
?
E_NOTIMPL
:
E_INVALIDARG
;
}
/******************************************************************************
...
...
dlls/ole32/tests/moniker.c
View file @
b7cab789
...
...
@@ -3497,7 +3497,7 @@ todo_wine
static
void
test_pointer_moniker
(
void
)
{
IMoniker
*
moniker
,
*
moniker2
,
*
prefix
,
*
inverse
,
*
anti
,
*
c
;
IMoniker
*
moniker
,
*
moniker2
,
*
moniker3
,
*
prefix
,
*
inverse
,
*
anti
,
*
c
;
struct
test_factory
factory
;
IEnumMoniker
*
enummoniker
;
DWORD
hash
,
size
;
...
...
@@ -3726,6 +3726,23 @@ todo_wine
IMoniker_Release
(
moniker2
);
IMoniker_Release
(
c
);
/* RelativePathTo() */
hr
=
create_moniker_from_desc
(
"I1"
,
&
moniker3
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_RelativePathTo
(
moniker
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#x.
\n
"
,
hr
);
moniker2
=
(
void
*
)
0xdeadbeef
;
hr
=
IMoniker_RelativePathTo
(
moniker
,
NULL
,
&
moniker2
);
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
moniker2
,
"Unexpected pointer.
\n
"
);
hr
=
IMoniker_RelativePathTo
(
moniker
,
moniker3
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#x.
\n
"
,
hr
);
moniker2
=
(
void
*
)
0xdeadbeef
;
hr
=
IMoniker_RelativePathTo
(
moniker
,
moniker3
,
&
moniker2
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
moniker2
,
"Unexpected pointer.
\n
"
);
IMoniker_Release
(
moniker3
);
IMoniker_Release
(
moniker
);
}
...
...
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