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
075d2452
Commit
075d2452
authored
Nov 20, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Don't expect IHttpNegotiate2 queries if the interface is not supported.
parent
c369759c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
url.c
dlls/urlmon/tests/url.c
+17
-10
No files found.
dlls/urlmon/tests/url.c
View file @
075d2452
...
...
@@ -161,6 +161,7 @@ static CHAR mime_type[512];
static
IInternetProtocolSink
*
protocol_sink
=
NULL
;
static
HANDLE
complete_event
,
complete_event2
;
static
HRESULT
binding_hres
;
static
BOOL
have_IHttpNegotiate2
;
static
LPCWSTR
urls
[]
=
{
WINE_ABOUT_URL
,
...
...
@@ -1826,6 +1827,7 @@ static void test_bscholder(IBindStatusCallback *holder)
hres
=
IBindStatusCallback_QueryInterface
(
holder
,
&
IID_IHttpNegotiate2
,
(
void
**
)
&
http_negotiate2
);
if
(
SUCCEEDED
(
hres
))
{
have_IHttpNegotiate2
=
TRUE
;
hres
=
IHttpNegotiate2_GetRootSecurityId
(
http_negotiate2
,
(
void
*
)
0xdeadbeef
,
(
void
*
)
0xdeadbeef
,
0
);
ok
(
hres
==
E_FAIL
,
"GetRootSecurityId failed: %08x
\n
"
,
hres
);
...
...
@@ -2115,10 +2117,11 @@ static void test_BindToStorage(int protocol, BOOL emul, DWORD t)
CLEAR_CALLED
(
QueryService_IInternetBindInfo
);
CHECK_CALLED
(
QueryInterface_IHttpNegotiate
);
CHECK_CALLED
(
BeginningTransaction
);
/* QueryInterface_IHttpNegotiate2 and GetRootSecurityId
* called on WinXP but not on Win98 */
CLEAR_CALLED
(
QueryInterface_IHttpNegotiate2
);
CLEAR_CALLED
(
GetRootSecurityId
);
if
(
have_IHttpNegotiate2
)
{
CHECK_CALLED
(
QueryInterface_IHttpNegotiate2
);
CHECK_CALLED
(
GetRootSecurityId
);
}
if
(
http_is_first
)
{
CHECK_CALLED
(
OnProgress_FINDINGRESOURCE
);
CHECK_CALLED
(
OnProgress_CONNECTING
);
...
...
@@ -2275,10 +2278,11 @@ static void test_BindToObject(int protocol, BOOL emul)
if
(
test_protocol
==
HTTP_TEST
)
{
CHECK_CALLED
(
QueryInterface_IHttpNegotiate
);
CHECK_CALLED
(
BeginningTransaction
);
/* QueryInterface_IHttpNegotiate2 and GetRootSecurityId
* called on WinXP but not on Win98 */
CLEAR_CALLED
(
QueryInterface_IHttpNegotiate2
);
CLEAR_CALLED
(
GetRootSecurityId
);
if
(
have_IHttpNegotiate2
)
{
CHECK_CALLED
(
QueryInterface_IHttpNegotiate2
);
CHECK_CALLED
(
GetRootSecurityId
);
}
if
(
http_is_first
)
{
CHECK_CALLED
(
Obj_OnProgress_FINDINGRESOURCE
);
CHECK_CALLED
(
Obj_OnProgress_CONNECTING
);
...
...
@@ -2384,8 +2388,11 @@ static void test_URLDownloadToFile(DWORD prot, BOOL emul)
if
(
test_protocol
==
HTTP_TEST
)
{
CHECK_CALLED
(
QueryInterface_IHttpNegotiate
);
CHECK_CALLED
(
BeginningTransaction
);
CHECK_CALLED
(
QueryInterface_IHttpNegotiate2
);
CHECK_CALLED
(
GetRootSecurityId
);
if
(
have_IHttpNegotiate2
)
{
CHECK_CALLED
(
QueryInterface_IHttpNegotiate2
);
CHECK_CALLED
(
GetRootSecurityId
);
}
}
if
(
test_protocol
==
FILE_TEST
)
CHECK_CALLED
(
OnProgress_SENDINGREQUEST
);
...
...
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