mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed async read error code handling
This commit is contained in:
parent
109ad9fc78
commit
cd038089a7
1 changed files with 3 additions and 1 deletions
|
@ -677,8 +677,10 @@ struct BfpAsyncData
|
||||||
return -2; // Still executing
|
return -2; // Still executing
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mOverlappedResult.mErrorCode != 0)
|
if ((mOverlappedResult.mErrorCode != 0) && (mOverlappedResult.mBytesRead == 0))
|
||||||
{
|
{
|
||||||
|
mOverlappedResult.mData.Clear();
|
||||||
|
errorCode = mOverlappedResult.mErrorCode;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue