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
2621e98d
Commit
2621e98d
authored
Nov 16, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Clean up properly in request_send.
parent
97ba7aa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
request.c
dlls/winhttp/request.c
+9
-5
No files found.
dlls/winhttp/request.c
View file @
2621e98d
...
...
@@ -2925,14 +2925,18 @@ static HRESULT request_send( struct winhttp_request *request )
if
(
!
(
ret
=
WinHttpSendRequest
(
request
->
hrequest
,
NULL
,
0
,
ptr
,
size
,
size
,
0
)))
{
err
=
get_last_error
();
goto
error
;
}
if
(
!
sa
)
heap_free
(
ptr
);
else
if
((
hr
=
SafeArrayUnaccessData
(
sa
))
!=
S_OK
)
return
hr
;
if
(
!
ret
)
return
HRESULT_FROM_WIN32
(
err
);
if
((
err
=
wait_for_completion
(
request
)))
return
HRESULT_FROM_WIN32
(
err
);
if
((
err
=
wait_for_completion
(
request
)))
goto
error
;
if
(
sa
)
SafeArrayUnaccessData
(
sa
);
else
heap_free
(
ptr
);
request
->
state
=
REQUEST_STATE_SENT
;
return
S_OK
;
error:
if
(
sa
)
SafeArrayUnaccessData
(
sa
);
else
heap_free
(
ptr
);
return
HRESULT_FROM_WIN32
(
err
);
}
static
HRESULT
request_send_and_receive
(
struct
winhttp_request
*
request
)
...
...
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