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
2e21d090
Commit
2e21d090
authored
May 25, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Cope with non-nul-terminated header strings being passed to HttpSendRequestW.
parent
4d1b8b1a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
http.c
dlls/wininet/http.c
+6
-3
No files found.
dlls/wininet/http.c
View file @
2e21d090
...
@@ -2224,8 +2224,8 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
...
@@ -2224,8 +2224,8 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
LPWININETAPPINFOW
hIC
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
BOOL
r
;
BOOL
r
;
TRACE
(
"%p, %
p (%s)
, %i, %p, %i)
\n
"
,
hHttpRequest
,
TRACE
(
"%p, %
s
, %i, %p, %i)
\n
"
,
hHttpRequest
,
lpszHeaders
,
debugstr_w
(
lpszHeaders
),
dwHeaderLength
,
lpOptional
,
dwOptionalLength
);
debugstr_wn
(
lpszHeaders
,
dwHeaderLength
),
dwHeaderLength
,
lpOptional
,
dwOptionalLength
);
lpwhr
=
(
LPWININETHTTPREQW
)
WININET_GetObject
(
hHttpRequest
);
lpwhr
=
(
LPWININETHTTPREQW
)
WININET_GetObject
(
hHttpRequest
);
if
(
NULL
==
lpwhr
||
lpwhr
->
hdr
.
htype
!=
WH_HHTTPREQ
)
if
(
NULL
==
lpwhr
||
lpwhr
->
hdr
.
htype
!=
WH_HHTTPREQ
)
...
@@ -2260,7 +2260,10 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
...
@@ -2260,7 +2260,10 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
if
(
lpszHeaders
)
if
(
lpszHeaders
)
req
->
lpszHeader
=
WININET_strdupW
(
lpszHeaders
);
{
req
->
lpszHeader
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwHeaderLength
*
sizeof
(
WCHAR
));
memcpy
(
req
->
lpszHeader
,
lpszHeaders
,
dwHeaderLength
*
sizeof
(
WCHAR
));
}
else
else
req
->
lpszHeader
=
0
;
req
->
lpszHeader
=
0
;
req
->
dwHeaderLength
=
dwHeaderLength
;
req
->
dwHeaderLength
=
dwHeaderLength
;
...
...
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