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
9d41c3d5
Commit
9d41c3d5
authored
Sep 08, 2010
by
Thomas Mullaly
Committed by
Alexandre Julliard
Sep 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Implemented IUriBuilder_HasBeenModified.
parent
d95d6b5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
43 deletions
+28
-43
uri.c
dlls/urlmon/tests/uri.c
+26
-41
uri.c
dlls/urlmon/uri.c
+2
-2
No files found.
dlls/urlmon/tests/uri.c
View file @
9d41c3d5
...
@@ -7652,18 +7652,13 @@ static void test_IUriBuilder(void) {
...
@@ -7652,18 +7652,13 @@ static void test_IUriBuilder(void) {
}
}
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
todo_wine
{
ok
(
hr
==
S_OK
,
ok
(
hr
==
S_OK
,
"Error IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x on uri_builder_tests[%d].
\n
"
,
"Error IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x on uri_builder_tests[%d].
\n
"
,
hr
,
S_OK
,
i
);
hr
,
S_OK
,
i
);
if
(
SUCCEEDED
(
hr
))
}
ok
(
received
==
modified
,
if
(
SUCCEEDED
(
hr
))
{
"Error: Expected received to be %d but was %d instead on uri_builder_tests[%d].
\n
"
,
todo_wine
{
modified
,
received
,
i
);
ok
(
received
==
modified
,
"Error: Expected received to be %d but was %d instead on uri_builder_tests[%d].
\n
"
,
modified
,
received
,
i
);
}
}
/* Test the "Get*" functions. */
/* Test the "Get*" functions. */
test_IUriBuilder_GetFragment
(
builder
,
&
test
,
i
);
test_IUriBuilder_GetFragment
(
builder
,
&
test
,
i
);
...
@@ -7705,12 +7700,10 @@ static void test_IUriBuilder_HasBeenModified(void) {
...
@@ -7705,12 +7700,10 @@ static void test_IUriBuilder_HasBeenModified(void) {
hr
,
S_OK
);
hr
,
S_OK
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
todo_wine
{
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
}
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
hr
=
pCreateUri
(
http_urlW
,
0
,
0
,
&
uri
);
hr
=
pCreateUri
(
http_urlW
,
0
,
0
,
&
uri
);
ok
(
hr
==
S_OK
,
"Error: CreateUri returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
S_OK
,
"Error: CreateUri returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
...
@@ -7723,24 +7716,20 @@ static void test_IUriBuilder_HasBeenModified(void) {
...
@@ -7723,24 +7716,20 @@ static void test_IUriBuilder_HasBeenModified(void) {
hr
,
S_OK
);
hr
,
S_OK
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
todo_wine
{
ok
(
received
==
FALSE
,
"Error: Expected received to be FALSE.
\n
"
);
}
ok
(
received
==
FALSE
,
"Error: Expected received to be FALSE.
\n
"
);
/* Test what happens with you call SetIUri with the same IUri again. */
/* Test what happens with you call SetIUri with the same IUri again. */
hr
=
IUriBuilder_SetHost
(
builder
,
hostW
);
hr
=
IUriBuilder_SetHost
(
builder
,
hostW
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_SetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_SetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
todo_wine
{
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
}
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
hr
=
IUriBuilder_SetIUri
(
builder
,
uri
);
hr
=
IUriBuilder_SetIUri
(
builder
,
uri
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_SetIUri returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_SetIUri returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
...
@@ -7749,11 +7738,10 @@ static void test_IUriBuilder_HasBeenModified(void) {
...
@@ -7749,11 +7738,10 @@ static void test_IUriBuilder_HasBeenModified(void) {
* reset any of the changes that were made to the IUriBuilder.
* reset any of the changes that were made to the IUriBuilder.
*/
*/
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
todo_wine
{
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
}
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
hr
=
IUriBuilder_GetHost
(
builder
,
&
len
,
&
prop
);
hr
=
IUriBuilder_GetHost
(
builder
,
&
len
,
&
prop
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_GetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_GetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
if
(
SUCCEEDED
(
hr
))
{
if
(
SUCCEEDED
(
hr
))
{
...
@@ -7769,23 +7757,20 @@ static void test_IUriBuilder_HasBeenModified(void) {
...
@@ -7769,23 +7757,20 @@ static void test_IUriBuilder_HasBeenModified(void) {
hr
=
IUriBuilder_SetHost
(
builder
,
hostW
);
hr
=
IUriBuilder_SetHost
(
builder
,
hostW
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_SetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_SetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
todo_wine
{
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
}
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
hr
=
IUriBuilder_SetIUri
(
builder
,
NULL
);
hr
=
IUriBuilder_SetIUri
(
builder
,
NULL
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_SetIUri returned 0x%08x, expected 0x%09x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_SetIUri returned 0x%08x, expected 0x%09x.
\n
"
,
hr
,
S_OK
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
hr
=
IUriBuilder_HasBeenModified
(
builder
,
&
received
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_HasBeenModified returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
hr
,
S_OK
);
}
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
todo_wine
{
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
}
ok
(
received
==
TRUE
,
"Error: Expected received to be TRUE.
\n
"
);
hr
=
IUriBuilder_GetHost
(
builder
,
&
len
,
&
prop
);
hr
=
IUriBuilder_GetHost
(
builder
,
&
len
,
&
prop
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_GetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
S_OK
,
"Error: IUriBuilder_GetHost returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
if
(
SUCCEEDED
(
hr
))
{
if
(
SUCCEEDED
(
hr
))
{
...
...
dlls/urlmon/uri.c
View file @
9d41c3d5
...
@@ -4756,8 +4756,8 @@ static HRESULT WINAPI UriBuilder_HasBeenModified(IUriBuilder *iface, BOOL *pfMod
...
@@ -4756,8 +4756,8 @@ static HRESULT WINAPI UriBuilder_HasBeenModified(IUriBuilder *iface, BOOL *pfMod
if
(
!
pfModified
)
if
(
!
pfModified
)
return
E_POINTER
;
return
E_POINTER
;
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pfModified
)
;
*
pfModified
=
This
->
modified_props
>
0
;
return
E_NOTIMPL
;
return
S_OK
;
}
}
#undef URIBUILDER_THIS
#undef URIBUILDER_THIS
...
...
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