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
8b1b3818
Commit
8b1b3818
authored
Aug 08, 2006
by
Paul Chitescu
Committed by
Alexandre Julliard
Aug 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: MSG_WAITALL support in NETCON_recv with SSL.
parent
7c69033b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
netconnection.c
dlls/wininet/netconnection.c
+10
-1
No files found.
dlls/wininet/netconnection.c
View file @
8b1b3818
...
...
@@ -511,7 +511,7 @@ BOOL NETCON_recv(WININET_NETCONNECTION *connection, void *buf, size_t len, int f
else
{
#if defined HAVE_OPENSSL_SSL_H && defined HAVE_OPENSSL_ERR_H
if
(
flags
&
(
~
MSG_PEEK
))
if
(
flags
&
~
(
MSG_PEEK
|
MSG_WAITALL
))
FIXME
(
"SSL_read does not support the following flag: %08x
\n
"
,
flags
);
/* this ugly hack is all for MSG_PEEK. eww gross */
...
...
@@ -538,6 +538,15 @@ BOOL NETCON_recv(WININET_NETCONNECTION *connection, void *buf, size_t len, int f
HeapFree
(
GetProcessHeap
(),
0
,
connection
->
peek_msg_mem
);
connection
->
peek_msg_mem
=
NULL
;
connection
->
peek_msg
=
NULL
;
/* check if the peek buffer held too few data */
if
((
flags
&
MSG_WAITALL
)
&&
(
*
recvd
<
len
))
{
int
recv2
=
0
;
/* recursive call - but now the peek buffer is empty */
if
(
!
NETCON_recv
(
connection
,
(
char
*
)
buf
+
*
recvd
,
len
-
*
recvd
,
flags
,
&
recv2
))
return
FALSE
;
*
recvd
+=
recv2
;
}
}
return
TRUE
;
}
...
...
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