summaryrefslogtreecommitdiff
path: root/src/core/stdfile
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-23 20:06:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-23 20:06:13 +0000
commitff0c96de9a298089aa7239ecae4c35b2368cb371 (patch)
treee88019998d2535b0d55c297267e9fa080b09164a /src/core/stdfile
parent94da88d8d18080b966bf101cd73a5acf606d6d80 (diff)
wrong flags processing fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@13795 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdfile')
-rw-r--r--src/core/stdfile/src/file.cpp4
1 files changed, 3 insertions, 1 deletions
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;