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
145031b8
Commit
145031b8
authored
Dec 30, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Don't call GetLastError() twice.
parent
2399e7f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
url.c
dlls/wininet/tests/url.c
+3
-3
No files found.
dlls/wininet/tests/url.c
View file @
145031b8
...
@@ -465,21 +465,21 @@ static void InternetCrackUrl_test(void)
...
@@ -465,21 +465,21 @@ static void InternetCrackUrl_test(void)
ret
=
InternetCrackUrlA
(
TEST_URL3
,
0
,
ICU_DECODE
,
&
urlComponents
);
ret
=
InternetCrackUrlA
(
TEST_URL3
,
0
,
ICU_DECODE
,
&
urlComponents
);
GLE
=
GetLastError
();
GLE
=
GetLastError
();
ok
(
ret
==
firstret
&&
(
GLE
==
firstGLE
),
"InternetCrackUrl returned %d with GLE=%d (expected to return %d)
\n
"
,
ok
(
ret
==
firstret
&&
(
GLE
==
firstGLE
),
"InternetCrackUrl returned %d with GLE=%d (expected to return %d)
\n
"
,
ret
,
G
etLastError
()
,
firstret
);
ret
,
G
LE
,
firstret
);
copy_compsA
(
&
urlSrc
,
&
urlComponents
,
32
,
1024
,
0
,
1024
,
2048
,
1024
);
copy_compsA
(
&
urlSrc
,
&
urlComponents
,
32
,
1024
,
0
,
1024
,
2048
,
1024
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
InternetCrackUrlA
(
TEST_URL3
,
0
,
ICU_DECODE
,
&
urlComponents
);
ret
=
InternetCrackUrlA
(
TEST_URL3
,
0
,
ICU_DECODE
,
&
urlComponents
);
GLE
=
GetLastError
();
GLE
=
GetLastError
();
ok
(
ret
==
firstret
&&
(
GLE
==
firstGLE
),
"InternetCrackUrl returned %d with GLE=%d (expected to return %d)
\n
"
,
ok
(
ret
==
firstret
&&
(
GLE
==
firstGLE
),
"InternetCrackUrl returned %d with GLE=%d (expected to return %d)
\n
"
,
ret
,
G
etLastError
()
,
firstret
);
ret
,
G
LE
,
firstret
);
copy_compsA
(
&
urlSrc
,
&
urlComponents
,
32
,
1024
,
1024
,
0
,
2048
,
1024
);
copy_compsA
(
&
urlSrc
,
&
urlComponents
,
32
,
1024
,
1024
,
0
,
2048
,
1024
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
InternetCrackUrlA
(
TEST_URL3
,
0
,
ICU_DECODE
,
&
urlComponents
);
ret
=
InternetCrackUrlA
(
TEST_URL3
,
0
,
ICU_DECODE
,
&
urlComponents
);
GLE
=
GetLastError
();
GLE
=
GetLastError
();
ok
(
ret
==
firstret
&&
(
GLE
==
firstGLE
),
"InternetCrackUrl returned %d with GLE=%d (expected to return %d)
\n
"
,
ok
(
ret
==
firstret
&&
(
GLE
==
firstGLE
),
"InternetCrackUrl returned %d with GLE=%d (expected to return %d)
\n
"
,
ret
,
G
etLastError
()
,
firstret
);
ret
,
G
LE
,
firstret
);
copy_compsA
(
&
urlSrc
,
&
urlComponents
,
32
,
1024
,
1024
,
1024
,
0
,
1024
);
copy_compsA
(
&
urlSrc
,
&
urlComponents
,
32
,
1024
,
1024
,
1024
,
0
,
1024
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
...
...
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