]> git.saurik.com Git - wxWidgets.git/commitdiff
no need to iterate over all special icon names after a match was found, there won...
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 15 Oct 2008 18:49:47 +0000 (18:49 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 15 Oct 2008 18:49:47 +0000 (18:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gdiimage.cpp

index 910d6c90b5247a8241e643911c96b97a06e5920a..e7aaa0c36f4f10d9a8af4468c260c0688c95bf86 100644 (file)
@@ -548,6 +548,7 @@ bool wxICOResourceHandler::LoadIcon(wxIcon *icon,
             if ( name == stdIcons[nIcon].name )
             {
                 hicon = ::LoadIcon((HINSTANCE)NULL, stdIcons[nIcon].id);
+                break;
             }
         }
     }