]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed infinite loop when looking up nonexistent encoding in registry
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 11 Jun 2001 22:55:01 +0000 (22:55 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 11 Jun 2001 22:55:01 +0000 (22:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index 462faa010a6367d1c5e2aa9775f7bee8ff9ee332..d80994520359c64b811a127b88e49a1502039c4c 100644 (file)
@@ -418,7 +418,7 @@ static long CharsetToCodepage(const wxChar *name)
         path += cn;
         wxRegKey key(wxRegKey::HKCR, path);
 
-        if (!key.Exists()) continue;
+        if (!key.Exists()) break;
 
         // two cases: either there's an AliasForCharset string,
         // or there are Codepage and InternetEncoding dwords.