mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 06:36:42 +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
1 changed files with 1 additions and 5 deletions
|
@ -52,11 +52,7 @@ AfdGetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AFD_INFO_RECEIVE_CONTENT_SIZE:
|
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;
|
break;
|
||||||
|
|
||||||
case AFD_INFO_SENDS_IN_PROGRESS:
|
case AFD_INFO_SENDS_IN_PROGRESS:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue