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
a9829338
Commit
a9829338
authored
Sep 13, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Try using IWinInetHttpInfo if OnResponse was not called.
parent
05dc7eac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
binding.h
dlls/mshtml/binding.h
+1
-0
navigate.c
dlls/mshtml/navigate.c
+41
-0
No files found.
dlls/mshtml/binding.h
View file @
a9829338
...
...
@@ -87,6 +87,7 @@ struct nsChannelBSC {
nsISupports
*
nscontext
;
BOOL
is_js
;
BOOL
is_doc_channel
;
BOOL
response_processed
;
nsProtocolStream
*
nsstream
;
};
...
...
dlls/mshtml/navigate.c
View file @
a9829338
...
...
@@ -754,6 +754,33 @@ static HRESULT process_response_headers(nsChannelBSC *This, const WCHAR *headers
return
S_OK
;
}
static
void
query_http_info
(
nsChannelBSC
*
This
,
IWinInetHttpInfo
*
wininet_info
)
{
const
WCHAR
*
ptr
;
DWORD
len
=
0
;
WCHAR
*
buf
;
IWinInetHttpInfo_QueryInfo
(
wininet_info
,
HTTP_QUERY_RAW_HEADERS_CRLF
,
NULL
,
&
len
,
NULL
,
NULL
);
if
(
!
len
)
return
;
buf
=
heap_alloc
(
len
);
if
(
!
buf
)
return
;
IWinInetHttpInfo_QueryInfo
(
wininet_info
,
HTTP_QUERY_RAW_HEADERS_CRLF
,
buf
,
&
len
,
NULL
,
NULL
);
if
(
!
len
)
return
;
ptr
=
strchrW
(
buf
,
'\r'
);
if
(
ptr
&&
ptr
[
1
]
==
'\n'
)
{
ptr
+=
2
;
process_response_headers
(
This
,
ptr
);
}
heap_free
(
buf
);
}
HRESULT
start_binding
(
HTMLInnerWindow
*
inner_window
,
BSCallback
*
bscallback
,
IBindCtx
*
bctx
)
{
IStream
*
str
=
NULL
;
...
...
@@ -1111,6 +1138,19 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
nsresult
nsres
;
HRESULT
hres
;
if
(
!
This
->
response_processed
)
{
IWinInetHttpInfo
*
wininet_info
;
This
->
response_processed
=
TRUE
;
if
(
This
->
bsc
.
binding
)
{
hres
=
IBinding_QueryInterface
(
This
->
bsc
.
binding
,
&
IID_IWinInetHttpInfo
,
(
void
**
)
&
wininet_info
);
if
(
SUCCEEDED
(
hres
))
{
query_http_info
(
This
,
wininet_info
);
IWinInetHttpInfo_Release
(
wininet_info
);
}
}
}
if
(
!
This
->
nslistener
)
{
BYTE
buf
[
1024
];
...
...
@@ -1601,6 +1641,7 @@ static HRESULT nsChannelBSC_on_response(BSCallback *bsc, DWORD response_code,
nsChannelBSC
*
This
=
nsChannelBSC_from_BSCallback
(
bsc
);
HRESULT
hres
;
This
->
response_processed
=
TRUE
;
This
->
nschannel
->
response_status
=
response_code
;
if
(
response_headers
)
{
...
...
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