summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/download.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SmileyAdd/src/download.cpp')
-rw-r--r--plugins/SmileyAdd/src/download.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/SmileyAdd/src/download.cpp b/plugins/SmileyAdd/src/download.cpp
index 5cbf42efc9..17a203bc68 100644
--- a/plugins/SmileyAdd/src/download.cpp
+++ b/plugins/SmileyAdd/src/download.cpp
@@ -221,6 +221,9 @@ int FolderChanged(WPARAM, LPARAM)
{
FoldersGetCustomPathT(hFolderCache, g_wszCachePath, MAX_PATH, L"");
FoldersGetCustomPathT(hFolderPacks, g_plugin.wszDefaultPath, MAX_PATH, L"Smileys");
+ size_t len = mir_wstrlen(g_plugin.wszDefaultPath);
+ if (len && g_plugin.wszDefaultPath[len - 1] != '\\')
+ mir_wstrcpy(g_plugin.wszDefaultPath + len, L"\\");
return 0;
}