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
a55e3d4f
Commit
a55e3d4f
authored
Mar 25, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Remove support for MSG_PEEK.
parent
bb3097f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
net.c
dlls/winhttp/net.c
+2
-20
No files found.
dlls/winhttp/net.c
View file @
a55e3d4f
...
...
@@ -667,17 +667,7 @@ BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd
SIZE_T
size
,
cread
;
BOOL
res
,
eof
;
if
(
flags
&
~
(
MSG_PEEK
|
MSG_WAITALL
))
FIXME
(
"SSL_read does not support the following flags: %08x
\n
"
,
flags
);
if
(
flags
&
MSG_PEEK
&&
conn
->
peek_msg
)
{
if
(
len
<
conn
->
peek_len
)
FIXME
(
"buffer isn't big enough, should we wrap?
\n
"
);
*
recvd
=
min
(
len
,
conn
->
peek_len
);
memcpy
(
buf
,
conn
->
peek_msg
,
*
recvd
);
return
TRUE
;
}
else
if
(
conn
->
peek_msg
)
if
(
conn
->
peek_msg
)
{
*
recvd
=
min
(
len
,
conn
->
peek_len
);
memcpy
(
buf
,
conn
->
peek_msg
,
*
recvd
);
...
...
@@ -691,7 +681,7 @@ BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd
conn
->
peek_msg
=
NULL
;
}
/* check if we have enough data from the peek buffer */
if
(
!
(
flags
&
MSG_WAITALL
)
||
(
*
recvd
==
len
)
)
return
TRUE
;
if
(
!
(
flags
&
MSG_WAITALL
)
||
*
recvd
==
len
)
return
TRUE
;
}
size
=
*
recvd
;
...
...
@@ -712,14 +702,6 @@ BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd
size
+=
cread
;
}
while
(
!
size
||
((
flags
&
MSG_WAITALL
)
&&
size
<
len
));
if
(
size
&&
(
flags
&
MSG_PEEK
))
{
conn
->
peek_msg_mem
=
conn
->
peek_msg
=
heap_alloc
(
size
);
if
(
!
conn
->
peek_msg
)
return
FALSE
;
memcpy
(
conn
->
peek_msg
,
buf
,
size
);
}
TRACE
(
"received %ld bytes
\n
"
,
size
);
*
recvd
=
size
;
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