diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ConnectionNotify/src/filter.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/ConnectionNotify/src/filter.cpp b/plugins/ConnectionNotify/src/filter.cpp index 0c8e53d1aa..c77ab89156 100644 --- a/plugins/ConnectionNotify/src/filter.cpp +++ b/plugins/ConnectionNotify/src/filter.cpp @@ -142,13 +142,11 @@ static INT_PTR CALLBACK ConnectionFilterEditProc(HWND hWnd, UINT message, WPARAM BOOL checkFilter(struct CONNECTION *head,struct CONNECTION *conn)
{
- struct CONNECTION *cur=head;
- while(cur!=NULL)
- {
- if (wildcmpt(cur->PName,conn->PName)&&wildcmpt(cur->strIntIp,conn->strIntIp)&&wildcmpt(cur->strExtIp,conn->strExtIp)&&(cur->intIntPort==-1||cur->intIntPort==conn->intIntPort)&&(cur->intExtPort==-1||cur->intExtPort==conn->intExtPort))
+ for(struct CONNECTION *cur=head; cur!=NULL; cur=cur->next)
+ if (wildcmpt(conn->PName,cur->PName)&&wildcmpt(conn->strIntIp,cur->strIntIp)&&wildcmpt(conn->strExtIp,cur->strExtIp)
+ &&(cur->intIntPort==-1||cur->intIntPort==conn->intIntPort)&&(cur->intExtPort==-1||cur->intExtPort==conn->intExtPort))
return cur->Pid;
- cur=cur->next;
- }
+
return settingDefaultAction;
}
|