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
e11828d2
Commit
e11828d2
authored
Jul 21, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Implement IWinHttpRequest::get_Status.
parent
5c79f82a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
request.c
dlls/winhttp/request.c
+18
-2
No files found.
dlls/winhttp/request.c
View file @
e11828d2
...
...
@@ -2551,8 +2551,24 @@ static HRESULT WINAPI winhttp_request_get_Status(
IWinHttpRequest
*
iface
,
LONG
*
status
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
struct
winhttp_request
*
request
=
impl_from_IWinHttpRequest
(
iface
);
DWORD
err
,
flags
,
status_code
,
len
=
sizeof
(
status_code
),
index
=
0
;
TRACE
(
"%p, %p
\n
"
,
request
,
status
);
if
(
request
->
state
<
REQUEST_STATE_SENT
)
{
return
HRESULT_FROM_WIN32
(
ERROR_WINHTTP_CANNOT_CALL_BEFORE_SEND
);
}
if
((
err
=
request_wait_for_response
(
request
,
INFINITE
,
NULL
)))
return
HRESULT_FROM_WIN32
(
err
);
flags
=
WINHTTP_QUERY_STATUS_CODE
|
WINHTTP_QUERY_FLAG_NUMBER
;
if
(
!
WinHttpQueryHeaders
(
request
->
hrequest
,
flags
,
NULL
,
&
status_code
,
&
len
,
&
index
))
{
return
HRESULT_FROM_WIN32
(
GetLastError
()
);
}
*
status
=
status_code
;
return
S_OK
;
}
static
HRESULT
WINAPI
winhttp_request_get_StatusText
(
...
...
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