summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r--plugins/NewStory/src/history_array.cpp10
1 files 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('\\', '/');