- Fix bug introduced in 51007

svn path=/trunk/; revision=51010
This commit is contained in:
Johannes Anderwald 2011-03-10 14:07:55 +00:00
parent ebe3986eb9
commit 65635497f6

View file

@ -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,