From 6c61dc812b9a5382c282f3e61111516fff562c0e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 7 Jan 2015 20:15:59 +0000 Subject: fix for potentially endless loops git-svn-id: http://svn.miranda-ng.org/main/trunk@11789 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdfile/src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/stdfile/src/file.cpp b/src/core/stdfile/src/file.cpp index 950f018141..0363ebc851 100644 --- a/src/core/stdfile/src/file.cpp +++ b/src/core/stdfile/src/file.cpp @@ -291,7 +291,7 @@ static void RemoveUnreadFileEvents(void) while (hDbEvent) { DBEVENTINFO dbei = { sizeof(dbei) }; db_event_get(hDbEvent, &dbei); - if (!(dbei.flags&(DBEF_SENT | DBEF_READ)) && dbei.eventType == EVENTTYPE_FILE) + if (!(dbei.flags & (DBEF_SENT | DBEF_READ)) && dbei.eventType == EVENTTYPE_FILE) db_event_markRead(hContact, hDbEvent); hDbEvent = db_event_next(hContact, hDbEvent); } -- cgit v1.2.3