From 50091223b8c0ed404968441c728e400e43ac6b8a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Aug 2012 20:29:07 +0000 Subject: - patch from pescuma for NULL handles git-svn-id: http://svn.miranda-ng.org/main/trunk@1470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FingerPrintModPlus/src/fingerprint.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/FingerPrintModPlus/src') diff --git a/plugins/FingerPrintModPlus/src/fingerprint.cpp b/plugins/FingerPrintModPlus/src/fingerprint.cpp index c135659cea..89825499db 100644 --- a/plugins/FingerPrintModPlus/src/fingerprint.cpp +++ b/plugins/FingerPrintModPlus/src/fingerprint.cpp @@ -1133,11 +1133,7 @@ HANDLE FASTCALL GetIconIndexFromFI(LPTSTR szMirVer) fiList[nFICount].dwArray = val; if (hIcon != NULL) { - do { - hFoundImage = (HANDLE)CallService(MS_CLIST_EXTRA_ADD_ICON, (WPARAM)hIcon, 0); - } - while (hFoundImage == 0); - + hFoundImage = (HANDLE)CallService(MS_CLIST_EXTRA_ADD_ICON, (WPARAM)hIcon, 0); fiList[nFICount].hRegisteredImage = hFoundImage; DestroyIcon(hIcon); } -- cgit v1.2.3