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:
parent
fd85b0640e
commit
9c904e251a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user