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
21712d3d
Commit
21712d3d
authored
Jan 13, 2006
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Handle NULL lpBuffersIn in HttpSendRequestExW.
parent
d37d5cd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
http.c
dlls/wininet/http.c
+19
-7
No files found.
dlls/wininet/http.c
View file @
21712d3d
...
...
@@ -1788,15 +1788,27 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET hRequest,
workRequest
.
asyncall
=
HTTPSENDREQUESTW
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
if
(
lpBuffersIn
->
lpcszHeader
)
/* FIXME: this should use dwHeadersLength or may not be necessary at all */
req
->
lpszHeader
=
WININET_strdupW
(
lpBuffersIn
->
lpcszHeader
);
if
(
lpBuffersIn
)
{
if
(
lpBuffersIn
->
lpcszHeader
)
/* FIXME: this should use dwHeadersLength or may not be necessary at all */
req
->
lpszHeader
=
WININET_strdupW
(
lpBuffersIn
->
lpcszHeader
);
else
req
->
lpszHeader
=
NULL
;
req
->
dwHeaderLength
=
lpBuffersIn
->
dwHeadersLength
;
req
->
lpOptional
=
lpBuffersIn
->
lpvBuffer
;
req
->
dwOptionalLength
=
lpBuffersIn
->
dwBufferLength
;
req
->
dwContentLength
=
lpBuffersIn
->
dwBufferTotal
;
}
else
{
req
->
lpszHeader
=
NULL
;
req
->
dwHeaderLength
=
lpBuffersIn
->
dwHeadersLength
;
req
->
lpOptional
=
lpBuffersIn
->
lpvBuffer
;
req
->
dwOptionalLength
=
lpBuffersIn
->
dwBufferLength
;
req
->
dwContentLength
=
lpBuffersIn
->
dwBufferTotal
;
req
->
dwHeaderLength
=
0
;
req
->
lpOptional
=
NULL
;
req
->
dwOptionalLength
=
0
;
req
->
dwContentLength
=
0
;
}
req
->
bEndRequest
=
FALSE
;
INTERNET_AsyncCall
(
&
workRequest
);
...
...
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