mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -61,19 +61,20 @@ GetSupportedCP(
|
||||
{
|
||||
pCodePage->NextItem = PCPage;
|
||||
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
|
||||
{
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user