DEV9: Tap, make GetOverlappedResult calls one line

This commit is contained in:
TheLastRar 2020-12-19 02:59:14 +00:00 committed by refractionpcsx2
parent 54651731f9
commit b097ca9979
1 changed files with 4 additions and 6 deletions

View File

@ -308,12 +308,10 @@ bool TAPAdapter::recv(NetPacket* pkt)
{
CancelIo(htap);
//Wait for the I/O subsystem to acknowledge our cancellation
result = GetOverlappedResult(htap, &read,
&read_size, TRUE);
result = GetOverlappedResult(htap, &read, &read_size, TRUE);
}
else
result = GetOverlappedResult(htap, &read,
&read_size, FALSE);
result = GetOverlappedResult(htap, &read, &read_size, FALSE);
if (!result)
{
@ -360,8 +358,8 @@ bool TAPAdapter::send(NetPacket* pkt)
if (dwError == ERROR_IO_PENDING)
{
WaitForSingleObject(write.hEvent, INFINITE);
result = GetOverlappedResult(htap, &write,
&writen, FALSE);
result = GetOverlappedResult(htap, &write, &writen, FALSE);
if (!result)
{
}