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:
@@ -418,7 +418,7 @@ static long CharsetToCodepage(const wxChar *name)
|
|||||||
path += cn;
|
path += cn;
|
||||||
wxRegKey key(wxRegKey::HKCR, path);
|
wxRegKey key(wxRegKey::HKCR, path);
|
||||||
|
|
||||||
if (!key.Exists()) continue;
|
if (!key.Exists()) break;
|
||||||
|
|
||||||
// two cases: either there's an AliasForCharset string,
|
// two cases: either there's an AliasForCharset string,
|
||||||
// or there are Codepage and InternetEncoding dwords.
|
// or there are Codepage and InternetEncoding dwords.
|
||||||
|
Reference in New Issue
Block a user