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
d7f54676
Commit
d7f54676
authored
Aug 26, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Implement WinHttpQueryDataAvailable.
parent
b170ac20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
main.c
dlls/winhttp/main.c
+0
-11
request.c
dlls/winhttp/request.c
+28
-0
No files found.
dlls/winhttp/main.c
View file @
d7f54676
...
...
@@ -95,17 +95,6 @@ BOOL WINAPI WinHttpQueryOption (HINTERNET hInternet, DWORD dwOption, LPVOID lpBu
}
/***********************************************************************
* WinHttpQueryDataAvailable (winhttp.@)
*/
BOOL
WINAPI
WinHttpQueryDataAvailable
(
HINTERNET
hInternet
,
LPDWORD
lpdwNumberOfBytesAvailable
)
{
FIXME
(
"stub
\n
"
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
}
/***********************************************************************
* WinHttpSetOption (winhttp.@)
*/
BOOL
WINAPI
WinHttpSetOption
(
HINTERNET
hInternet
,
DWORD
dwOption
,
LPVOID
lpBuffer
,
DWORD
dwBufferLength
)
...
...
dlls/winhttp/request.c
View file @
d7f54676
...
...
@@ -948,3 +948,31 @@ BOOL WINAPI WinHttpReceiveResponse( HINTERNET hrequest, LPVOID reserved )
release_object
(
&
request
->
hdr
);
return
ret
;
}
/***********************************************************************
* WinHttpQueryDataAvailable (winhttp.@)
*/
BOOL
WINAPI
WinHttpQueryDataAvailable
(
HINTERNET
hrequest
,
LPDWORD
available
)
{
BOOL
ret
;
request_t
*
request
;
TRACE
(
"%p, %p
\n
"
,
hrequest
,
available
);
if
(
!
(
request
=
(
request_t
*
)
grab_object
(
hrequest
)))
{
set_last_error
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
request
->
hdr
.
type
!=
WINHTTP_HANDLE_TYPE_REQUEST
)
{
release_object
(
&
request
->
hdr
);
set_last_error
(
ERROR_WINHTTP_INCORRECT_HANDLE_TYPE
);
return
FALSE
;
}
ret
=
netconn_query_data_available
(
&
request
->
netconn
,
available
);
release_object
(
&
request
->
hdr
);
return
ret
;
}
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