mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +00:00
[MSAFD]
- Fix bug introduced in 51007 svn path=/trunk/; revision=51010
This commit is contained in:
parent
ebe3986eb9
commit
65635497f6
|
@ -907,7 +907,7 @@ WSPSelect(IN int nfds,
|
||||||
}
|
}
|
||||||
|
|
||||||
PollInfo->HandleCount = j;
|
PollInfo->HandleCount = j;
|
||||||
PollBufferSize = sizeof(AFD_POLL_INFO) + (PollInfo->HandleCount > 1 ? sizeof(HANDLE) * ( PollInfo->HandleCount - 1) : 0);
|
PollBufferSize = FIELD_OFFSET(AFD_POLL_INFO, Handles) + PollInfo->HandleCount * sizeof(AFD_HANDLE);
|
||||||
|
|
||||||
/* Send IOCTL */
|
/* Send IOCTL */
|
||||||
Status = NtDeviceIoControlFile((HANDLE)PollInfo->Handles[0].Handle,
|
Status = NtDeviceIoControlFile((HANDLE)PollInfo->Handles[0].Handle,
|
||||||
|
|
Loading…
Reference in a new issue