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
c32cca80
Commit
c32cca80
authored
Jan 11, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use QueryService to get IHttpNegotiate in get_post_data_stream.
parent
ed11dbab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
10 deletions
+25
-10
persist.c
dlls/mshtml/persist.c
+25
-10
No files found.
dlls/mshtml/persist.c
View file @
c32cca80
...
...
@@ -90,8 +90,9 @@ static int fix_headers(char *buf, DWORD post_len)
static
nsIInputStream
*
get_post_data_stream
(
IBindCtx
*
bctx
)
{
nsIInputStream
*
ret
=
NULL
;
IUnknown
*
unk
;
IBindStatusCallback
*
callback
;
I
HttpNegotiate
*
http_negotiate
;
I
ServiceProvider
*
service_provider
;
BINDINFO
bindinfo
;
DWORD
bindf
=
0
;
DWORD
post_len
=
0
,
headers_len
=
0
;
...
...
@@ -108,19 +109,33 @@ static nsIInputStream *get_post_data_stream(IBindCtx *bctx)
if
(
!
bctx
)
return
NULL
;
hres
=
IBindCtx_GetObjectParam
(
bctx
,
_BSCB_Holder_
,
(
IUnknown
**
)
&
callbac
k
);
hres
=
IBindCtx_GetObjectParam
(
bctx
,
_BSCB_Holder_
,
&
un
k
);
if
(
FAILED
(
hres
))
return
NULL
;
hres
=
IBindStatusCallback_QueryInterface
(
callback
,
&
IID_IHttpNegotiate
,
(
void
**
)
&
http_negotiate
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IBindStatusCallback
,
(
void
**
)
&
callback
);
if
(
FAILED
(
hres
))
{
IUnknown_Release
(
unk
);
return
NULL
;
}
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IServiceProvider
,
(
void
**
)
&
service_provider
);
IUnknown_Release
(
unk
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IHttpNegotiate_BeginningTransaction
(
http_negotiate
,
emptystr
,
emptystr
,
0
,
&
headers
);
IHttpNegotiate_Release
(
http_negotiate
);
IHttpNegotiate
*
http_negotiate
;
hres
=
IServiceProvider_QueryService
(
service_provider
,
&
IID_IHttpNegotiate
,
&
IID_IHttpNegotiate
,
(
void
**
)
&
http_negotiate
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IHttpNegotiate_BeginningTransaction
(
http_negotiate
,
emptystr
,
emptystr
,
0
,
&
headers
);
IHttpNegotiate_Release
(
http_negotiate
);
if
(
SUCCEEDED
(
hres
)
&&
headers
)
headers_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
headers
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
}
if
(
SUCCEEDED
(
hres
)
&&
headers
)
headers_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
headers
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
IServiceProvider_Release
(
service_provider
);
}
memset
(
&
bindinfo
,
0
,
sizeof
(
bindinfo
));
...
...
@@ -140,7 +155,6 @@ static nsIInputStream *get_post_data_stream(IBindCtx *bctx)
if
(
headers_len
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
headers
,
-
1
,
data
,
-
1
,
NULL
,
NULL
);
CoTaskMemFree
(
headers
);
len
=
fix_headers
(
data
,
post_len
);
}
...
...
@@ -159,6 +173,7 @@ static nsIInputStream *get_post_data_stream(IBindCtx *bctx)
ret
=
create_nsstream
(
data
,
len
+
post_len
);
}
CoTaskMemFree
(
headers
);
ReleaseBindInfo
(
&
bindinfo
);
IBindStatusCallback_Release
(
callback
);
...
...
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