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
2266219c
Commit
2266219c
authored
Mar 08, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Don't crash on systems with IE5.
parent
c01d0ade
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
url.c
dlls/wininet/tests/url.c
+12
-6
No files found.
dlls/wininet/tests/url.c
View file @
2266219c
...
...
@@ -305,13 +305,19 @@ static void InternetCrackUrlW_test(void)
return
;
}
ok
(
!
r
,
"InternetCrackUrlW succeeded unexpectedly
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_PARAMETER
||
broken
(
error
==
ERROR_INTERNET_UNRECOGNIZED_SCHEME
),
/* IE5 */
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
r
=
InternetCrackUrlW
(
url
,
0
,
0
,
NULL
);
error
=
GetLastError
();
ok
(
!
r
,
"InternetCrackUrlW succeeded unexpectedly
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
error
);
if
(
error
==
ERROR_INVALID_PARAMETER
)
{
/* Crashes on IE5 */
SetLastError
(
0xdeadbeef
);
r
=
InternetCrackUrlW
(
url
,
0
,
0
,
NULL
);
error
=
GetLastError
();
ok
(
!
r
,
"InternetCrackUrlW succeeded unexpectedly
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
error
);
}
r
=
InternetCrackUrlW
(
url
,
0
,
0
,
&
comp
);
ok
(
r
,
"failed to crack url
\n
"
);
...
...
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