From f5a524f750e1dc0c16d82df546557d9d7fe703f8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Aug 2012 19:16:15 +0000 Subject: 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 --- plugins/FingerPrintModPlus/src/fingerprint.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins') 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; -- cgit v1.2.3