From ff0c96de9a298089aa7239ecae4c35b2368cb371 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 May 2015 20:06:13 +0000 Subject: wrong flags processing fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@13795 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdfile/src/file.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/stdfile/src/file.cpp b/src/core/stdfile/src/file.cpp index af5483841d..0b263cf47b 100644 --- a/src/core/stdfile/src/file.cpp +++ b/src/core/stdfile/src/file.cpp @@ -381,8 +381,10 @@ static INT_PTR Proto_RecvFileT(WPARAM, LPARAM lParam) DBEVENTINFO dbei = { sizeof(dbei) }; dbei.szModule = GetContactProto(ccs->hContact); dbei.timestamp = pre->timestamp; - dbei.flags = DBEF_UTF | (pre->dwFlags & PREF_CREATEREAD) ? DBEF_READ : 0; dbei.eventType = EVENTTYPE_FILE; + dbei.flags = DBEF_UTF; + if (pre->dwFlags & PREF_CREATEREAD) + dbei.flags |= DBEF_READ; bool bUnicode = (pre->dwFlags & PRFF_UNICODE) == PRFF_UNICODE; -- cgit v1.2.3