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
e3dfbe33
Commit
e3dfbe33
authored
Jun 08, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Skip security flags tests on too old wininet versions.
parent
74f596c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
http.c
dlls/wininet/tests/http.c
+13
-2
No files found.
dlls/wininet/tests/http.c
View file @
e3dfbe33
...
...
@@ -2933,8 +2933,8 @@ static void _test_secflags_option(unsigned line, HINTERNET req, DWORD ex_flags)
flags
=
0xdeadbeef
;
size
=
sizeof
(
flags
);
res
=
InternetQueryOptionW
(
req
,
98
,
&
flags
,
&
size
);
ok_
(
__FILE__
,
line
)(
res
,
"InternetQueryOptionW(
INTERNET_OPTION_SECURITY_FLAGS
) failed: %u
\n
"
,
GetLastError
());
ok_
(
__FILE__
,
line
)(
flags
==
ex_flags
,
"INTERNET_OPTION_SECURITY_FLAGS flags = %x, expected %x
\n
"
,
flags
,
ex_flags
);
ok_
(
__FILE__
,
line
)(
res
,
"InternetQueryOptionW(
98
) failed: %u
\n
"
,
GetLastError
());
ok_
(
__FILE__
,
line
)(
flags
==
ex_flags
,
"INTERNET_OPTION_SECURITY_FLAGS
(98)
flags = %x, expected %x
\n
"
,
flags
,
ex_flags
);
}
#define set_secflags(a,b,c) _set_secflags(__LINE__,a,b,c)
...
...
@@ -2975,6 +2975,17 @@ static void test_security_flags(void)
ok
(
req
!=
NULL
,
"HttpOpenRequest failed
\n
"
);
CHECK_NOTIFIED
(
INTERNET_STATUS_HANDLE_CREATED
);
flags
=
0xdeadbeef
;
size
=
sizeof
(
flags
);
res
=
InternetQueryOptionW
(
req
,
98
,
&
flags
,
&
size
);
if
(
!
res
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
{
win_skip
(
"Incomplete security flags support, skipping
\n
"
);
close_async_handle
(
ses
,
hCompleteEvent
,
2
);
CloseHandle
(
hCompleteEvent
);
return
;
}
test_secflags_option
(
req
,
0
);
set_secflags
(
req
,
TRUE
,
SECURITY_FLAG_IGNORE_REVOCATION
);
...
...
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