mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[MSAFD]
- Correct calculating PollBufferSize - Found by DPH svn path=/trunk/; revision=51007
This commit is contained in:
parent
092d6ca92e
commit
a2453433f1
1 changed files with 1 additions and 1 deletions
|
@ -907,7 +907,7 @@ WSPSelect(IN int nfds,
|
|||
}
|
||||
|
||||
PollInfo->HandleCount = j;
|
||||
PollBufferSize = ((PCHAR)&PollInfo->Handles[j+1]) - ((PCHAR)PollInfo);
|
||||
PollBufferSize = sizeof(AFD_POLL_INFO) + (PollInfo->HandleCount > 1 ? sizeof(HANDLE) * ( PollInfo->HandleCount - 1) : 0);
|
||||
|
||||
/* Send IOCTL */
|
||||
Status = NtDeviceIoControlFile((HANDLE)PollInfo->Handles[0].Handle,
|
||||
|
|
Loading…
Reference in a new issue