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
9a7ce561
Commit
9a7ce561
authored
Aug 10, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Aug 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Print the correct function name in ok() messages.
parent
2569123d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
internet.c
dlls/wininet/tests/internet.c
+5
-5
No files found.
dlls/wininet/tests/internet.c
View file @
9a7ce561
...
...
@@ -1111,29 +1111,29 @@ static void test_InternetSetOption(void)
SetLastError
(
0xdeadbeef
);
ulArg
=
11
;
ret
=
InternetSetOptionA
(
NULL
,
INTERNET_OPTION_ERROR_MASK
,
(
void
*
)
&
ulArg
,
sizeof
(
ULONG
));
ok
(
ret
==
FALSE
,
"Internet
Query
Option should've failed
\n
"
);
ok
(
ret
==
FALSE
,
"Internet
Set
Option should've failed
\n
"
);
ok
(
GetLastError
()
==
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
,
"GetLastError() = %x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ulArg
=
11
;
ret
=
InternetSetOptionA
(
req
,
INTERNET_OPTION_ERROR_MASK
,
(
void
*
)
&
ulArg
,
20
);
ok
(
ret
==
FALSE
,
"Internet
Query
Option should've failed
\n
"
);
ok
(
ret
==
FALSE
,
"Internet
Set
Option should've failed
\n
"
);
ok
(
GetLastError
()
==
ERROR_INTERNET_BAD_OPTION_LENGTH
,
"GetLastError() = %d
\n
"
,
GetLastError
());
ulArg
=
11
;
ret
=
InternetSetOptionA
(
req
,
INTERNET_OPTION_ERROR_MASK
,
(
void
*
)
&
ulArg
,
sizeof
(
ULONG
));
ok
(
ret
==
TRUE
,
"Internet
Query
Option should've succeeded
\n
"
);
ok
(
ret
==
TRUE
,
"Internet
Set
Option should've succeeded
\n
"
);
SetLastError
(
0xdeadbeef
);
ulArg
=
4
;
ret
=
InternetSetOptionA
(
req
,
INTERNET_OPTION_ERROR_MASK
,
(
void
*
)
&
ulArg
,
sizeof
(
ULONG
));
ok
(
ret
==
FALSE
,
"Internet
Query
Option should've failed
\n
"
);
ok
(
ret
==
FALSE
,
"Internet
Set
Option should've failed
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"GetLastError() = %x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ulArg
=
16
;
ret
=
InternetSetOptionA
(
req
,
INTERNET_OPTION_ERROR_MASK
,
(
void
*
)
&
ulArg
,
sizeof
(
ULONG
));
ok
(
ret
==
FALSE
,
"Internet
Query
Option should've failed
\n
"
);
ok
(
ret
==
FALSE
,
"Internet
Set
Option should've failed
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"GetLastError() = %x
\n
"
,
GetLastError
());
ret
=
InternetCloseHandle
(
req
);
...
...
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