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
d2389dc0
Commit
d2389dc0
authored
Feb 17, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fix post data parsing.
parent
9dffd134
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
navigate.c
dlls/mshtml/navigate.c
+4
-2
No files found.
dlls/mshtml/navigate.c
View file @
d2389dc0
...
...
@@ -404,6 +404,8 @@ static void parse_post_data(nsIInputStream *post_data_stream, LPWSTR *headers_re
nsIInputStream_Available
(
post_data_stream
,
&
available
);
post_data
=
GlobalAlloc
(
0
,
available
+
1
);
nsIInputStream_Read
(
post_data_stream
,
post_data
,
available
,
&
post_data_len
);
TRACE
(
"post_data = %s
\n
"
,
debugstr_an
(
post_data
,
post_data_len
));
ptr
=
ptr2
=
post_data
;
...
...
@@ -452,8 +454,8 @@ static void parse_post_data(nsIInputStream *post_data_stream, LPWSTR *headers_re
}
if
(
headers_len
)
{
memmove
(
post_data
,
ptr
,
ptr
-
(
const
char
*
)
post_data
);
post_data_len
-=
ptr
-
(
const
char
*
)
post_data
;
memmove
(
post_data
,
ptr
,
post_data_len
);
post_data
=
GlobalReAlloc
(
post_data
,
post_data_len
+
1
,
0
);
}
...
...
@@ -476,7 +478,7 @@ void hlink_frame_navigate(NSContainer *container, IHlinkFrame *hlink_frame,
if
(
post_data_stream
)
{
parse_post_data
(
post_data_stream
,
&
headers
,
&
post_data
,
&
post_data_len
);
TRACE
(
"
%s
%s
\n
"
,
debugstr_w
(
headers
),
debugstr_a
(
post_data
));
TRACE
(
"
headers = %s post_data =
%s
\n
"
,
debugstr_w
(
headers
),
debugstr_a
(
post_data
));
}
callback
=
BSCallback_Create
(
container
->
doc
,
uri
,
post_data
,
post_data_len
,
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