mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
don't loop (UINT)-1 times if the section is not present, CID 445
svn path=/trunk/; revision=36764
This commit is contained in:
@@ -26,14 +26,15 @@ static HWND hLangList;
|
||||
static BOOL
|
||||
GetSupportedCP(VOID)
|
||||
{
|
||||
UINT uiCPage, Count, Number;
|
||||
UINT uiCPage, Number;
|
||||
LONG Count;
|
||||
INFCONTEXT infCont;
|
||||
LPCPAGE lpCPage;
|
||||
HANDLE hCPage;
|
||||
CPINFOEX cpInfEx;
|
||||
//TCHAR Section[MAX_PATH];
|
||||
|
||||
Count = (UINT) SetupGetLineCount(hIntlInf, _T("CodePages"));
|
||||
Count = SetupGetLineCount(hIntlInf, _T("CodePages"));
|
||||
if (Count <= 0) return FALSE;
|
||||
|
||||
for (Number = 0; Number < Count; Number++)
|
||||
|
||||
Reference in New Issue
Block a user