mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
[INTL]
Fix freeing logic in GetSupportedCP(). Patch by Victor Martinez Calvo. CORE-13385 svn path=/trunk/; revision=74941
This commit is contained in:
parent
2c1c8e2f94
commit
fd32dd8623
1 changed files with 9 additions and 8 deletions
|
@ -61,19 +61,20 @@ GetSupportedCP(
|
||||||
{
|
{
|
||||||
pCodePage->NextItem = PCPage;
|
pCodePage->NextItem = PCPage;
|
||||||
PCPage = pCodePage;
|
PCPage = pCodePage;
|
||||||
|
|
||||||
|
wsprintf(szSection, L"CODEPAGE_REMOVE_%d", uiCodePage);
|
||||||
|
|
||||||
|
if ((uiCodePage == GetACP()) ||
|
||||||
|
(uiCodePage == GetOEMCP()) ||
|
||||||
|
(!SetupFindFirstLineW(hInf, szSection, L"AddReg", &Context2)))
|
||||||
|
{
|
||||||
|
pCodePage->Flags |= CODEPAGE_NOT_REMOVEABLE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(), 0, pCodePage);
|
HeapFree(GetProcessHeap(), 0, pCodePage);
|
||||||
}
|
}
|
||||||
|
|
||||||
wsprintf(szSection, L"CODEPAGE_REMOVE_%d", uiCodePage);
|
|
||||||
if ((uiCodePage == GetACP()) ||
|
|
||||||
(uiCodePage == GetOEMCP()) ||
|
|
||||||
(!SetupFindFirstLineW(hInf, szSection, L"AddReg", &Context2)))
|
|
||||||
{
|
|
||||||
pCodePage->Flags |= CODEPAGE_NOT_REMOVEABLE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!SetupFindNextLine(&Context, &Context))
|
if (!SetupFindNextLine(&Context, &Context))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue