diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-13 11:56:19 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-13 11:56:23 +0300 |
commit | f2fac9ed0c2f1c992ddacc8859436d5d95e0a667 (patch) | |
tree | f05d91507b11876f6f5adc12cb69232c286f9600 /protocols/Telegram | |
parent | 99d31f21cced48f57d21cf86078eb4bfe44935be (diff) |
fixes #4048 (Telegram: принятый файл сохраняется уровнем выше, чем указано в настройках)
Diffstat (limited to 'protocols/Telegram')
-rw-r--r-- | protocols/Telegram/src/avatars.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Telegram/src/avatars.cpp b/protocols/Telegram/src/avatars.cpp index 9f6e9e6436..9da6068cce 100644 --- a/protocols/Telegram/src/avatars.cpp +++ b/protocols/Telegram/src/avatars.cpp @@ -225,7 +225,7 @@ void CTelegramProto::ProcessFile(TD::updateFile *pObj) dbv.pszVal = (char *)pSlash;
db_event_setJson(F->ofd->hDbEvent, "f", &dbv);
- wszFullName.Truncate(wszFullName.ReverseFind('\\'));
+ wszFullName.Truncate(wszFullName.ReverseFind('\\') + 1);
wszFullName.Append(Utf2T(pSlash));
F->ofd->ResetFileName(wszFullName); // resulting ofd->wszPath may differ from wszFullName
|