diff options
Diffstat (limited to 'plugins/SmileyAdd/src/download.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/download.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SmileyAdd/src/download.cpp b/plugins/SmileyAdd/src/download.cpp index 5b51b9970b..5834fae432 100644 --- a/plugins/SmileyAdd/src/download.cpp +++ b/plugins/SmileyAdd/src/download.cpp @@ -216,6 +216,7 @@ int FolderChanged(WPARAM, LPARAM) {
FoldersGetCustomPathW(hFolderCache, g_wszCachePath, MAX_PATH, L"");
FoldersGetCustomPathW(hFolderPacks, g_plugin.wszDefaultPath, MAX_PATH, L"%miranda_path%");
+
size_t len = mir_wstrlen(g_plugin.wszDefaultPath);
if (len && g_plugin.wszDefaultPath[len - 1] != '\\')
mir_wstrcpy(g_plugin.wszDefaultPath + len, L"\\");
@@ -238,7 +239,7 @@ void DownloadInit(void) }
else {
wcsncpy_s(g_wszCachePath, VARSW(L"%miranda_userdata%\\SmileyCache"), _TRUNCATE);
- g_plugin.wszDefaultPath[0] = 0;
+ wcsncpy_s(g_plugin.wszDefaultPath, VARSW(L"%miranda_path%\\"), _TRUNCATE);
}
g_hDlMutex = CreateMutex(nullptr, FALSE, nullptr);
|