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
2546e47b
Commit
2546e47b
authored
Sep 19, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opcservices: Implement CombinePartUri().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
960cbe80
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
opcservices.c
dlls/opcservices/tests/opcservices.c
+10
-4
uri.c
dlls/opcservices/uri.c
+19
-2
No files found.
dlls/opcservices/tests/opcservices.c
View file @
2546e47b
...
...
@@ -1053,19 +1053,25 @@ static void test_combine_uri(void)
hr
=
CreateUri
(
relativeW
,
Uri_CREATE_ALLOW_RELATIVE
,
0
,
&
relative_uri
);
ok
(
SUCCEEDED
(
hr
),
"%u: failed to create relative uri, hr %#x.
\n
"
,
i
,
hr
);
combined_uri
=
(
void
*
)
0xdeadbeef
;
hr
=
IOpcUri_CombinePartUri
(
uri
,
NULL
,
&
combined_uri
);
ok
(
hr
==
E_POINTER
,
"%u: failed to combine uris, hr %#x.
\n
"
,
i
,
hr
);
ok
(
!
combined_uri
,
"Unexpected instance.
\n
"
);
hr
=
IOpcUri_CombinePartUri
(
uri
,
relative_uri
,
NULL
);
ok
(
hr
==
E_POINTER
,
"%u: failed to combine uris, hr %#x.
\n
"
,
i
,
hr
);
hr
=
IOpcUri_CombinePartUri
(
uri
,
relative_uri
,
&
combined_uri
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"%u: failed to combine uris, hr %#x.
\n
"
,
i
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IOpcPartUri_GetRawUri
(
combined_uri
,
&
str
);
ok
(
SUCCEEDED
(
hr
),
"%u: failed to get raw uri, hr %#x.
\n
"
,
i
,
hr
);
todo_wine_if
(
i
==
2
||
i
==
3
)
ok
(
!
lstrcmpW
(
str
,
combinedW
),
"%u: unexpected uri %s.
\n
"
,
i
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IOpcPartUri_Release
(
combined_uri
);
}
heap_free
(
uriW
);
heap_free
(
relativeW
);
heap_free
(
combinedW
);
...
...
dlls/opcservices/uri.c
View file @
2546e47b
...
...
@@ -357,9 +357,26 @@ static HRESULT WINAPI opc_uri_GetRelativeUri(IOpcPartUri *iface, IOpcPartUri *pa
static
HRESULT
WINAPI
opc_uri_CombinePartUri
(
IOpcPartUri
*
iface
,
IUri
*
relative_uri
,
IOpcPartUri
**
combined
)
{
FIXME
(
"iface %p, relative_uri %p, combined %p stub!
\n
"
,
iface
,
relative_uri
,
combined
);
struct
opc_uri
*
uri
=
impl_from_IOpcPartUri
(
iface
);
IUri
*
combined_uri
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, relative_uri %p, combined %p.
\n
"
,
iface
,
relative_uri
,
combined
);
if
(
!
combined
)
return
E_POINTER
;
*
combined
=
NULL
;
if
(
!
relative_uri
)
return
E_POINTER
;
if
(
FAILED
(
hr
=
CoInternetCombineIUri
(
uri
->
uri
,
relative_uri
,
0
,
&
combined_uri
,
0
)))
return
hr
;
hr
=
opc_part_uri_create
(
combined_uri
,
NULL
,
combined
);
IUri_Release
(
combined_uri
);
return
hr
;
}
static
HRESULT
WINAPI
opc_uri_ComparePartUri
(
IOpcPartUri
*
iface
,
IOpcPartUri
*
part_uri
,
...
...
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