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
9c7057c2
Commit
9c7057c2
authored
Nov 22, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fixed tests on IE10.
parent
5a69b888
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
uri.c
dlls/urlmon/tests/uri.c
+5
-3
uri.c
dlls/urlmon/uri.c
+6
-6
No files found.
dlls/urlmon/tests/uri.c
View file @
9c7057c2
...
@@ -4607,8 +4607,6 @@ static const invalid_uri invalid_uri_tests[] = {
...
@@ -4607,8 +4607,6 @@ static const invalid_uri invalid_uri_tests[] = {
{
"http://[::192.0]"
,
0
,
FALSE
},
{
"http://[::192.0]"
,
0
,
FALSE
},
/* Can't have elision of 1 h16 at beginning of address. */
/* Can't have elision of 1 h16 at beginning of address. */
{
"http://[::2:3:4:5:6:7:8]"
,
0
,
FALSE
},
{
"http://[::2:3:4:5:6:7:8]"
,
0
,
FALSE
},
/* Can't have elision of 1 h16 at end of address. */
{
"http://[1:2:3:4:5:6:7::]"
,
0
,
FALSE
},
/* Expects a valid IP Literal. */
/* Expects a valid IP Literal. */
{
"ftp://[not.valid.uri]/"
,
0
,
FALSE
},
{
"ftp://[not.valid.uri]/"
,
0
,
FALSE
},
/* Expects valid port for a known scheme type. */
/* Expects valid port for a known scheme type. */
...
@@ -7420,10 +7418,14 @@ static void test_IUri_GetPropertyBSTR(void) {
...
@@ -7420,10 +7418,14 @@ static void test_IUri_GetPropertyBSTR(void) {
/* Make sure it handles a invalid Uri_PROPERTY's correctly. */
/* Make sure it handles a invalid Uri_PROPERTY's correctly. */
hr
=
IUri_GetPropertyBSTR
(
uri
,
Uri_PROPERTY_PORT
,
&
received
,
0
);
hr
=
IUri_GetPropertyBSTR
(
uri
,
Uri_PROPERTY_PORT
,
&
received
,
0
);
ok
(
hr
==
S_OK
,
"Error: GetPropertyBSTR returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
ok
(
hr
==
E_INVALIDARG
/* IE10 */
||
broken
(
hr
==
S_OK
),
"Error: GetPropertyBSTR returned 0x%08x, expected E_INVALIDARG or S_OK.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
ok
(
received
!=
NULL
,
"Error: Expected the string not to be NULL.
\n
"
);
ok
(
received
!=
NULL
,
"Error: Expected the string not to be NULL.
\n
"
);
ok
(
!
SysStringLen
(
received
),
"Error: Expected the string to be of len=0 but it was %d instead.
\n
"
,
SysStringLen
(
received
));
ok
(
!
SysStringLen
(
received
),
"Error: Expected the string to be of len=0 but it was %d instead.
\n
"
,
SysStringLen
(
received
));
SysFreeString
(
received
);
SysFreeString
(
received
);
}
else
{
ok
(
!
received
,
"received = %s
\n
"
,
wine_dbgstr_w
(
received
));
}
/* Make sure it handles the ZONE property correctly. */
/* Make sure it handles the ZONE property correctly. */
received
=
NULL
;
received
=
NULL
;
...
...
dlls/urlmon/uri.c
View file @
9c7057c2
...
@@ -4279,16 +4279,16 @@ static HRESULT WINAPI Uri_GetPropertyBSTR(IUri *iface, Uri_PROPERTY uriProp, BST
...
@@ -4279,16 +4279,16 @@ static HRESULT WINAPI Uri_GetPropertyBSTR(IUri *iface, Uri_PROPERTY uriProp, BST
return
E_POINTER
;
return
E_POINTER
;
if
(
uriProp
>
Uri_PROPERTY_STRING_LAST
)
{
if
(
uriProp
>
Uri_PROPERTY_STRING_LAST
)
{
/* Windows allocates an empty BSTR for invalid Uri_PROPERTY's. */
/* It only returns S_FALSE for the ZONE property... */
if
(
uriProp
==
Uri_PROPERTY_ZONE
)
{
*
pbstrProperty
=
SysAllocStringLen
(
NULL
,
0
);
*
pbstrProperty
=
SysAllocStringLen
(
NULL
,
0
);
if
(
!
(
*
pbstrProperty
))
if
(
!
(
*
pbstrProperty
))
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
/* It only returns S_FALSE for the ZONE property... */
if
(
uriProp
==
Uri_PROPERTY_ZONE
)
return
S_FALSE
;
return
S_FALSE
;
else
}
return
S_OK
;
*
pbstrProperty
=
NULL
;
return
E_INVALIDARG
;
}
}
/* Don't have support for flags yet. */
/* Don't have support for flags yet. */
...
...
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