1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-23 03:33:35 +00:00

Fixed dwErrorStatus check

This commit is contained in:
Bryan Roe
2020-05-07 11:27:05 -07:00
parent 9668b8d77d
commit 2ae485dad8

View File

@@ -1428,6 +1428,8 @@ BOOL ILibProcessPipe_Pipe_ReadEx_sink(void *chain, HANDLE h, ILibWaitHandle_Erro
ILibProcessPipe_PipeObject *j = (ILibProcessPipe_PipeObject*)user;
DWORD bytesRead = 0;
if (status == ILibWaitHandle_ErrorStatus_INVALID_HANDLE) { return(FALSE); }
if (GetOverlappedResult(j->mPipe_ReadEnd, j->mOverlapped, &bytesRead, FALSE))
{
if (j->user2 != NULL) { ((ILibProcessPipe_Pipe_ReadExHandler)j->user2)(j, j->user1, 0, j->buffer, (int)bytesRead); }