summaryrefslogtreecommitdiff
path: root/plugins/FingerprintNG/src/prepare.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-05-08 16:25:02 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-05-08 16:25:02 +0300
commit5ad1609f423952a4e3c856fda0a41ab37085db17 (patch)
tree5d67ab7630bebb118d9060e5145fc46eb66592a9 /plugins/FingerprintNG/src/prepare.cpp
parente1371137c42bcff3a1281970a0cf3a30e5619a63 (diff)
fingerprint: custom icons were always displayed as undetected
Diffstat (limited to 'plugins/FingerprintNG/src/prepare.cpp')
-rw-r--r--plugins/FingerprintNG/src/prepare.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/FingerprintNG/src/prepare.cpp b/plugins/FingerprintNG/src/prepare.cpp
index f2d21000cb..b11947cf5c 100644
--- a/plugins/FingerprintNG/src/prepare.cpp
+++ b/plugins/FingerprintNG/src/prepare.cpp
@@ -229,7 +229,7 @@ void RegisterCustomIcons()
_wcsupr_s(pMask->szMaskUpper, iMaskLen);
pMask->szMask = pMask->szMaskUpper;
- pMask->iIconIndex = it["iconFile"].as_int();
+ pMask->iIconIndex = it["iconIndex"].as_int();
pMask->szIconName = szName.Detach();
pMask->szClientDescription = szDescription.Detach();
@@ -243,6 +243,6 @@ void RegisterCustomIcons()
pMask->hIcolibItem = g_plugin.addIcon(&sid);
pMask->idx = g_arCommon.getCount();
- g_arCommon.insert(pMask);
+ g_arCommon.insert(pMask, 0);
}
}