mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 20:20:48 +00:00
wininet: Always reset the second input buffer in netcon_secure_connect_setup().
This commit is contained in:
parent
b349a3e375
commit
f83a66f052
|
@ -493,14 +493,12 @@ static DWORD netcon_secure_connect_setup(netconn_t *connection, BOOL compat_mode
|
||||||
|
|
||||||
memmove(read_buf, (BYTE*)in_bufs[0].pvBuffer+in_bufs[0].cbBuffer-in_bufs[1].cbBuffer, in_bufs[1].cbBuffer);
|
memmove(read_buf, (BYTE*)in_bufs[0].pvBuffer+in_bufs[0].cbBuffer-in_bufs[1].cbBuffer, in_bufs[1].cbBuffer);
|
||||||
in_bufs[0].cbBuffer = in_bufs[1].cbBuffer;
|
in_bufs[0].cbBuffer = in_bufs[1].cbBuffer;
|
||||||
|
|
||||||
in_bufs[1].BufferType = SECBUFFER_EMPTY;
|
|
||||||
in_bufs[1].cbBuffer = 0;
|
|
||||||
in_bufs[1].pvBuffer = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(in_bufs[0].BufferType == SECBUFFER_TOKEN);
|
assert(in_bufs[0].BufferType == SECBUFFER_TOKEN);
|
||||||
in_bufs[1].BufferType = SECBUFFER_EMPTY;
|
in_bufs[1].BufferType = SECBUFFER_EMPTY;
|
||||||
|
in_bufs[1].cbBuffer = 0;
|
||||||
|
in_bufs[1].pvBuffer = NULL;
|
||||||
|
|
||||||
if(in_bufs[0].cbBuffer + 1024 > read_buf_size) {
|
if(in_bufs[0].cbBuffer + 1024 > read_buf_size) {
|
||||||
BYTE *new_read_buf;
|
BYTE *new_read_buf;
|
||||||
|
|
Loading…
Reference in a new issue