Re: 0001-Fix-race-for-IOCTL_SERIAL_WAIT_ON_MASK.patch
4 Sep
2013
4 Sep
'13
8:43 p.m.
Wolfgang Walter <wine(a)stwm.de> writes:
@@ -1265,8 +1265,12 @@ static inline NTSTATUS io_control(HANDLE hDevice, case IOCTL_SERIAL_WAIT_ON_MASK: if (lpOutBuffer && nOutBufferSize == sizeof(DWORD)) { + piosb->u.Status = STATUS_PENDING; + piosb->Information = 0; if (!(status = wait_on(hDevice, fd, hEvent, piosb, lpOutBuffer))) sz = sizeof(DWORD); + else if (status == STATUS_PENDING) + return status;
Status is not supposed to be set until the operation is done. -- Alexandre Julliard julliard(a)winehq.org
4485
Age (days ago)
4485
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard