From: Václav Slavík Date: Mon, 11 Jun 2001 22:55:01 +0000 (+0000) Subject: fixed infinite loop when looking up nonexistent encoding in registry X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9c904e251a8ba31afe28a39d7448fbab491604c9 fixed infinite loop when looking up nonexistent encoding in registry git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 462faa010a..d809945203 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -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.