[ros-diffs] [khornicek] 36764: don't loop (UINT)-1 times if the section is not present, CID 445

khornicek at svn.reactos.org khornicek at svn.reactos.org
Wed Oct 15 20:59:48 CEST 2008


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=36764&r1=36763&r2=36764&view=diff
==============================================================================
--- 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++)



More information about the Ros-diffs mailing list