diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-15 19:16:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-15 19:16:15 +0000 |
commit | f5a524f750e1dc0c16d82df546557d9d7fe703f8 (patch) | |
tree | 3e52451b48d02da7ff87b75fce7086a9784c146f /plugins/FingerPrintModPlus | |
parent | 57c086462f793d864c2373bd48bf763a466bcd3e (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/FingerPrintModPlus')
-rw-r--r-- | plugins/FingerPrintModPlus/src/fingerprint.cpp | 8 |
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;
|