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
ae05ce45
Commit
ae05ce45
authored
Jul 27, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Don't send any data if the verb is GET.
parent
2295c637
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
request.c
dlls/winhttp/request.c
+6
-1
No files found.
dlls/winhttp/request.c
View file @
ae05ce45
...
...
@@ -2162,6 +2162,7 @@ struct winhttp_request
HINTERNET
hsession
;
HINTERNET
hconnect
;
HINTERNET
hrequest
;
WCHAR
*
verb
;
HANDLE
wait
;
HANDLE
cancel
;
char
*
buffer
;
...
...
@@ -2202,6 +2203,7 @@ static ULONG WINAPI winhttp_request_Release(
CloseHandle
(
request
->
wait
);
CloseHandle
(
request
->
cancel
);
heap_free
(
request
->
buffer
);
heap_free
(
request
->
verb
);
heap_free
(
request
);
}
return
refs
;
...
...
@@ -2444,6 +2446,7 @@ static HRESULT WINAPI winhttp_request_Open(
debugstr_variant
(
&
async
));
if
(
!
method
||
!
url
)
return
E_INVALIDARG
;
if
(
!
(
request
->
verb
=
strdupW
(
method
)))
return
E_OUTOFMEMORY
;
memset
(
&
uc
,
0
,
sizeof
(
uc
)
);
uc
.
dwStructSize
=
sizeof
(
uc
);
...
...
@@ -2703,7 +2706,7 @@ static HRESULT WINAPI winhttp_request_Send(
return
HRESULT_FROM_WIN32
(
get_last_error
()
);
}
VariantInit
(
&
array
);
if
(
VariantChangeType
(
&
array
,
&
body
,
0
,
VT_ARRAY
|
VT_UI1
)
==
S_OK
)
if
(
strcmpW
(
request
->
verb
,
getW
)
&&
VariantChangeType
(
&
array
,
&
body
,
0
,
VT_ARRAY
|
VT_UI1
)
==
S_OK
)
{
SAFEARRAY
*
sa
=
V_ARRAY
(
&
array
);
if
((
hr
=
SafeArrayAccessData
(
sa
,
(
void
**
)
&
ptr
))
!=
S_OK
)
return
hr
;
...
...
@@ -2986,6 +2989,7 @@ static HRESULT WINAPI winhttp_request_Abort(
CloseHandle
(
request
->
wait
);
CloseHandle
(
request
->
cancel
);
heap_free
(
request
->
buffer
);
heap_free
(
request
->
verb
);
request
->
state
=
REQUEST_STATE_INVALID
;
request
->
hrequest
=
NULL
;
request
->
hconnect
=
NULL
;
...
...
@@ -2993,6 +2997,7 @@ static HRESULT WINAPI winhttp_request_Abort(
request
->
wait
=
NULL
;
request
->
cancel
=
NULL
;
request
->
buffer
=
NULL
;
request
->
verb
=
NULL
;
request
->
offset
=
0
;
request
->
bytes_available
=
0
;
request
->
bytes_read
=
0
;
...
...
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