Author: janderwald
Date: Sun Mar 16 14:19:26 2008
New Revision: 32703
URL:
http://svn.reactos.org/svn/reactos?rev=3D32703&view=3Drev
Log:
- fix compilation with msvc
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=3D32703&r1=3D32702&r2=3D32703&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/dll/cpl/intl/advanced.c (original)
+++ trunk/reactos/dll/cpl/intl/advanced.c Sun Mar 16 14:19:26 2008
@@ -28,6 +28,8 @@
INFCONTEXT infCont;
LPCPAGE lpCPage;
HANDLE hCPage;
+ CPINFOEX cpInfEx;
+ TCHAR Section[MAX_PATH];
=
Count =3D (UINT) SetupGetLineCount(hIntlInf, _T("CodePages"));
if (Count <=3D 0) return FALSE;
@@ -45,7 +47,6 @@
lpCPage->Status =3D 0;
(lpCPage->Name)[0] =3D 0;
=
- CPINFOEX cpInfEx;
if (GetCPInfoEx(uiCPage, 0, &cpInfEx))
{
_tcscpy(lpCPage->Name, cpInfEx.CodePageName);
@@ -57,7 +58,6 @@
continue;
}
=
- TCHAR Section[MAX_PATH];
_stprintf(Section, _T("%s%d"), _T("CODEPAGE_REMOVE_"),
uiCPage=
);
if ((uiCPage =3D=3D GetACP()) || (uiCPage =3D=3D GetOEMCP()) |=
| =
(!SetupFindFirstLine(hIntlInf, Section, _T("AddReg"),
&inf=
Cont)))
@@ -101,6 +101,9 @@
LPCPAGE lpCPage;
INT ItemIndex;
HWND hList;
+ LV_COLUMN column;
+ LV_ITEM item;
+ RECT ListRect;
=
hList =3D GetDlgItem(hwndDlg, IDC_CONV_TABLES);
=
@@ -120,10 +123,6 @@
SetupCloseInfFile(hIntlInf);
=
if (!EnumSystemCodePages(InstalledCPProc, CP_INSTALLED)) return;
-
- LV_COLUMN column;
- LV_ITEM item;
- RECT ListRect;
=
ZeroMemory(&column, sizeof(LV_COLUMN));
column.mask =3D LVCF_FMT|LVCF_TEXT|LVCF_WIDTH;