Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3dbeb15e
Commit
3dbeb15e
authored
Nov 22, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Call necko's SetUploadStream from wrapper's SetUploadStream.
parent
afc7a798
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
nsio.c
dlls/mshtml/nsio.c
+18
-20
No files found.
dlls/mshtml/nsio.c
View file @
3dbeb15e
...
...
@@ -756,25 +756,6 @@ static nsresult async_open(nsChannel *This, NSContainer *container, nsIStreamLis
HRESULT
hres
;
if
(
This
->
channel
)
{
if
(
This
->
post_data_stream
)
{
nsIUploadChannel
*
upload_channel
;
nsres
=
nsIChannel_QueryInterface
(
This
->
channel
,
&
IID_nsIUploadChannel
,
(
void
**
)
&
upload_channel
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsACString
empty_string
;
nsACString_Init
(
&
empty_string
,
""
);
nsres
=
nsIUploadChannel_SetUploadStream
(
upload_channel
,
This
->
post_data_stream
,
&
empty_string
,
-
1
);
nsIUploadChannel_Release
(
upload_channel
);
if
(
NS_FAILED
(
nsres
))
WARN
(
"SetUploadStream failed: %08x
\n
"
,
nsres
);
nsACString_Finish
(
&
empty_string
);
}
}
nsres
=
nsIChannel_AsyncOpen
(
This
->
channel
,
listener
,
context
);
if
(
mon
)
...
...
@@ -1162,6 +1143,7 @@ static nsresult NSAPI nsUploadChannel_SetUploadStream(nsIUploadChannel *iface,
{
nsChannel
*
This
=
NSUPCHANNEL_THIS
(
iface
);
const
char
*
content_type
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p %p %d)
\n
"
,
This
,
aStream
,
aContentType
,
aContentLength
);
...
...
@@ -1177,9 +1159,25 @@ static nsresult NSAPI nsUploadChannel_SetUploadStream(nsIUploadChannel *iface,
if
(
aContentLength
!=
-
1
)
FIXME
(
"Unsupported acontentLength = %d
\n
"
,
aContentLength
);
if
(
This
->
post_data_stream
)
nsIInputStream_Release
(
This
->
post_data_stream
);
This
->
post_data_stream
=
aStream
;
if
(
aStream
)
nsIInputStream_AddRef
(
aStream
);
This
->
post_data_stream
=
aStream
;
if
(
This
->
post_data_stream
)
{
nsIUploadChannel
*
upload_channel
;
nsres
=
nsIChannel_QueryInterface
(
This
->
channel
,
&
IID_nsIUploadChannel
,
(
void
**
)
&
upload_channel
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsres
=
nsIUploadChannel_SetUploadStream
(
upload_channel
,
aStream
,
aContentType
,
aContentLength
);
nsIUploadChannel_Release
(
upload_channel
);
if
(
NS_FAILED
(
nsres
))
WARN
(
"SetUploadStream failed: %08x
\n
"
,
nsres
);
}
}
return
NS_OK
;
}
...
...
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