From fde87a82768ea971a9832e39d87137100e382422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 15 Oct 2008 18:49:47 +0000 Subject: [PATCH] no need to iterate over all special icon names after a match was found, there won't be another one git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gdiimage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index 910d6c90b5..e7aaa0c36f 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -548,6 +548,7 @@ bool wxICOResourceHandler::LoadIcon(wxIcon *icon, if ( name == stdIcons[nIcon].name ) { hicon = ::LoadIcon((HINSTANCE)NULL, stdIcons[nIcon].id); + break; } } }