mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[MSAFD]
- Fix bug introduced in 51007 svn path=/trunk/; revision=51010
This commit is contained in:
parent
ebe3986eb9
commit
65635497f6
1 changed files with 1 additions and 1 deletions
|
@ -907,7 +907,7 @@ WSPSelect(IN int nfds,
|
|||
}
|
||||
|
||||
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 */
|
||||
Status = NtDeviceIoControlFile((HANDLE)PollInfo->Handles[0].Handle,
|
||||
|
|
Loading…
Reference in a new issue