mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[AFD]
- Fix returning uninitialized data from FIONREAD when the socket is not bound or connected svn path=/trunk/; revision=57168
This commit is contained in:
parent
1925cef7a0
commit
44356bb773
|
@ -52,11 +52,7 @@ AfdGetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
|||
break;
|
||||
|
||||
case AFD_INFO_RECEIVE_CONTENT_SIZE:
|
||||
/* Only touch InfoReq if a socket has been set up.
|
||||
Behaviour was verified under WinXP SP2. */
|
||||
if(FCB->AddressFile.Object || FCB->Connection.Object)
|
||||
InfoReq->Information.Ulong = FCB->Recv.Content - FCB->Recv.BytesUsed;
|
||||
|
||||
InfoReq->Information.Ulong = FCB->Recv.Content - FCB->Recv.BytesUsed;
|
||||
break;
|
||||
|
||||
case AFD_INFO_SENDS_IN_PROGRESS:
|
||||
|
|
Loading…
Reference in a new issue