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
ad914986
Commit
ad914986
authored
Jun 10, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix status text value parsing.
parent
c2c8b9e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
httprequest.c
dlls/msxml3/httprequest.c
+18
-17
No files found.
dlls/msxml3/httprequest.c
View file @
ad914986
...
...
@@ -540,31 +540,32 @@ static HRESULT WINAPI BSCHttpNegotiate_OnResponse(IHttpNegotiate *iface, DWORD c
This
->
request
->
status_text
=
NULL
;
if
(
resp_headers
)
{
const
WCHAR
*
ptr
,
*
line
;
const
WCHAR
*
ptr
,
*
line
,
*
status_text
;
ptr
=
line
=
resp_headers
;
/* skip status line */
while
(
*
ptr
)
/* skip HTTP-Version */
ptr
=
strchrW
(
ptr
,
' '
);
if
(
ptr
)
{
if
(
*
ptr
==
'\r'
&&
*
(
ptr
+
1
)
==
'\n'
)
/* skip Status-Code */
ptr
=
strchrW
(
++
ptr
,
' '
);
if
(
ptr
)
{
const
WCHAR
*
end
=
ptr
-
1
;
line
=
ptr
+
2
;
/* scan back to get status phrase */
while
(
ptr
>
resp_headers
)
status_text
=
++
ptr
;
/* now it supposed to end with CRLF */
while
(
*
ptr
)
{
if
(
*
ptr
==
' '
)
{
This
->
request
->
status_text
=
SysAllocStringLen
(
ptr
+
1
,
end
-
ptr
);
TRACE
(
"status text %s
\n
"
,
debugstr_w
(
This
->
request
->
status_text
));
break
;
}
ptr
--
;
if
(
*
ptr
==
'\r'
&&
*
(
ptr
+
1
)
==
'\n'
)
{
line
=
ptr
+
2
;
This
->
request
->
status_text
=
SysAllocStringLen
(
status_text
,
ptr
-
status_text
);
TRACE
(
"status text %s
\n
"
,
debugstr_w
(
This
->
request
->
status_text
));
break
;
}
ptr
++
;
}
break
;
}
ptr
++
;
}
/* store as unparsed string for now */
...
...
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