From 428a9573a353898498b26cd323d4b8fabc754e20 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 16 Jul 2024 19:10:36 +0300 Subject: =?UTF-8?q?fixes=20#4535=20(VK:=20=D0=B2=20=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D1=8E=20=D0=BF=D0=B8=D1=88=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=8F=20=D0=BA=D1=80=D0=B8=D0=B2=D0=B0=D1=8F=20=D1=81=D1=81?= =?UTF-8?q?=D1=8B=D0=BB=D0=BA=D0=B0=20=D0=BD=D0=B0=20=D0=BE=D1=82=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D0=B9=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_array.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 48a06f4043..0fa3433720 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -415,10 +415,12 @@ void ItemData::load(bool bLoadAlways) break; } - wchar_t buf[MAX_PATH]; - File::GetReceivedFolder(hContact, buf, _countof(buf)); - - CMStringW wszFileName = buf; + CMStringW wszFileName; + if (!PathIsAbsoluteW(blob.getName())) { + wchar_t buf[MAX_PATH]; + File::GetReceivedFolder(hContact, buf, _countof(buf)); + wszFileName = buf; + } wszFileName.Append(blob.getName()); wszFileName.Replace('\\', '/'); -- cgit v1.2.3