diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-15 20:29:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-15 20:29:07 +0000 |
commit | 50091223b8c0ed404968441c728e400e43ac6b8a (patch) | |
tree | f89833bd530fd63655e7d0575435212d2152ff7b /plugins/FingerPrintModPlus/src/fingerprint.cpp | |
parent | f5a524f750e1dc0c16d82df546557d9d7fe703f8 (diff) |
- patch from pescuma for NULL handles
git-svn-id: http://svn.miranda-ng.org/main/trunk@1470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FingerPrintModPlus/src/fingerprint.cpp')
-rw-r--r-- | plugins/FingerPrintModPlus/src/fingerprint.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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);
}
|