Skip to content

Commit

Permalink
Update GetQueueCompletionStatus Error Break
Browse files Browse the repository at this point in the history
  • Loading branch information
TimelifeCzy committed Jun 12, 2022
1 parent 0d6ccfc commit 8b5e940
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HadSvc/HlprMiniCom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "socketMsg.h"

#define NOTIFICATION_KEY ((ULONG_PTR)-1)

static HANDLE g_hPort = nullptr;
static HANDLE g_comPletion = nullptr;
static BOOL g_InitPortStatus = FALSE;
Expand Down Expand Up @@ -195,6 +197,8 @@ void HlprMiniPortIpc::GetMsgNotifyWork()
break;
continue;
}
else if (!pOvlp || key == NOTIFICATION_KEY)
continue;
message = CONTAINING_RECORD(pOvlp, COMMAND_MESSAGE, Overlapped);
// handler buffer
notification = &message->Notification;
Expand Down

0 comments on commit 8b5e940

Please sign in to comment.