summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/services.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-01-17 21:36:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-01-17 21:36:32 +0300
commit47e198e3b3ce4cc292ef90c7d8c0e9d10d9aaa1a (patch)
tree9ec16e9f2409fc090dcd145be6735ed349944041 /plugins/SmileyAdd/src/services.cpp
parent2769e6dfd3c3db280f40c1a09e0edbcee355045d (diff)
SmileyAdd: no need to register . as a smiley
Diffstat (limited to 'plugins/SmileyAdd/src/services.cpp')
-rw-r--r--plugins/SmileyAdd/src/services.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp
index abc5e3cb93..b94bdd48ad 100644
--- a/plugins/SmileyAdd/src/services.cpp
+++ b/plugins/SmileyAdd/src/services.cpp
@@ -344,6 +344,9 @@ INT_PTR LoadContactSmileys(WPARAM, LPARAM lParam)
wszPath.Truncate(idx+1);
do {
+ if (!mir_wstrcmp(findData.cFileName, L".") || !mir_wstrcmp(findData.cFileName, L"."))
+ continue;
+
CMStringW wszFileName = wszPath + findData.cFileName;
g_SmileyPackCStore.AddSmiley(cont->pszModule, wszFileName);
} while (FindNextFileW(hFind, &findData));