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
This commit is contained in:
Václav Slavík 2001-06-11 22:55:01 +00:00
parent fd85b0640e
commit 9c904e251a

View 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.