summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-15 19:16:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-15 19:16:15 +0000
commitf5a524f750e1dc0c16d82df546557d9d7fe703f8 (patch)
tree3e52451b48d02da7ff87b75fce7086a9784c146f /plugins
parent57c086462f793d864c2373bd48bf763a466bcd3e (diff)
terrible clutch for extraicons to avoid its conflict with clist_modern
git-svn-id: http://svn.miranda-ng.org/main/trunk@1469 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/FingerPrintModPlus/src/fingerprint.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/FingerPrintModPlus/src/fingerprint.cpp b/plugins/FingerPrintModPlus/src/fingerprint.cpp
index 6bacee887f..c135659cea 100644
--- a/plugins/FingerPrintModPlus/src/fingerprint.cpp
+++ b/plugins/FingerPrintModPlus/src/fingerprint.cpp
@@ -1133,8 +1133,12 @@ HANDLE FASTCALL GetIconIndexFromFI(LPTSTR szMirVer)
fiList[nFICount].dwArray = val;
if (hIcon != NULL) {
- fiList[nFICount].hRegisteredImage = (hIcon) ? (HANDLE)CallService(MS_CLIST_EXTRA_ADD_ICON, (WPARAM)hIcon, 0) : INVALID_HANDLE_VALUE;
- hFoundImage = fiList[nFICount].hRegisteredImage;
+ do {
+ hFoundImage = (HANDLE)CallService(MS_CLIST_EXTRA_ADD_ICON, (WPARAM)hIcon, 0);
+ }
+ while (hFoundImage == 0);
+
+ fiList[nFICount].hRegisteredImage = hFoundImage;
DestroyIcon(hIcon);
}
else fiList[nFICount].hRegisteredImage = INVALID_HANDLE_VALUE;