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
4e3eabd6
Commit
4e3eabd6
authored
Nov 30, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't use INTERNET_SetLastError in HttpSendRequestW.
parent
c55d0a85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
http.c
dlls/wininet/http.c
+12
-11
No files found.
dlls/wininet/http.c
View file @
4e3eabd6
...
...
@@ -3405,7 +3405,7 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
http_request_t
*
lpwhr
;
http_session_t
*
lpwhs
=
NULL
;
appinfo_t
*
hIC
=
NULL
;
BOOL
r
;
DWORD
res
=
ERROR_SUCCESS
;
TRACE
(
"%p, %s, %i, %p, %i)
\n
"
,
hHttpRequest
,
debugstr_wn
(
lpszHeaders
,
dwHeaderLength
),
dwHeaderLength
,
lpOptional
,
dwOptionalLength
);
...
...
@@ -3413,24 +3413,21 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
lpwhr
=
(
http_request_t
*
)
WININET_GetObject
(
hHttpRequest
);
if
(
NULL
==
lpwhr
||
lpwhr
->
hdr
.
htype
!=
WH_HHTTPREQ
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
r
=
FALSE
;
res
=
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
;
goto
lend
;
}
lpwhs
=
lpwhr
->
lpHttpSession
;
if
(
NULL
==
lpwhs
||
lpwhs
->
hdr
.
htype
!=
WH_HHTTPSESSION
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
r
=
FALSE
;
res
=
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
;
goto
lend
;
}
hIC
=
lpwhs
->
lpAppInfo
;
if
(
NULL
==
hIC
||
hIC
->
hdr
.
htype
!=
WH_HINIT
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
r
=
FALSE
;
res
=
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
;
goto
lend
;
}
...
...
@@ -3464,19 +3461,23 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
/*
* This is from windows.
*/
INTERNET_SetLastError
(
ERROR_IO_PENDING
);
r
=
FALSE
;
res
=
ERROR_IO_PENDING
;
}
else
{
r
=
HTTP_HttpSendRequestW
(
lpwhr
,
lpszHeaders
,
BOOL
r
=
HTTP_HttpSendRequestW
(
lpwhr
,
lpszHeaders
,
dwHeaderLength
,
lpOptional
,
dwOptionalLength
,
dwOptionalLength
,
TRUE
);
if
(
!
r
)
res
=
INTERNET_GetLastError
();
}
lend:
if
(
lpwhr
)
WININET_Release
(
&
lpwhr
->
hdr
);
return
r
;
if
(
res
!=
ERROR_SUCCESS
)
SetLastError
(
res
);
return
res
==
ERROR_SUCCESS
;
}
/***********************************************************************
...
...
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