Author: khornicek Date: Wed Oct 15 13:59:47 2008 New Revision: 36764
URL: http://svn.reactos.org/svn/reactos?rev=36764&view=rev Log: don't loop (UINT)-1 times if the section is not present, CID 445
Modified: trunk/reactos/dll/cpl/intl/advanced.c
Modified: trunk/reactos/dll/cpl/intl/advanced.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/advanced.c?rev... ============================================================================== --- trunk/reactos/dll/cpl/intl/advanced.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/advanced.c [iso-8859-1] Wed Oct 15 13:59:47 2008 @@ -26,14 +26,15 @@ 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++)