mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
Reserve space for The Terminator
svn path=/trunk/; revision=17739
This commit is contained in:
parent
f2854a8641
commit
9bec9db6c6
|
@ -218,7 +218,7 @@ BOOL IniAddSettingValueToSection(ULONG SectionId, PCHAR SettingName, PCHAR Setti
|
|||
RtlZeroMemory(SectionItem, sizeof(INI_SECTION_ITEM));
|
||||
|
||||
// Allocate the setting name buffer
|
||||
SectionItem->ItemName = MmAllocateMemory(strlen(SettingName));
|
||||
SectionItem->ItemName = MmAllocateMemory(strlen(SettingName) + 1);
|
||||
if (!SectionItem->ItemName)
|
||||
{
|
||||
MmFreeMemory(SectionItem);
|
||||
|
@ -226,7 +226,7 @@ BOOL IniAddSettingValueToSection(ULONG SectionId, PCHAR SettingName, PCHAR Setti
|
|||
}
|
||||
|
||||
// Allocate the setting value buffer
|
||||
SectionItem->ItemValue = MmAllocateMemory(strlen(SettingValue));
|
||||
SectionItem->ItemValue = MmAllocateMemory(strlen(SettingValue) + 1);
|
||||
if (!SectionItem->ItemValue)
|
||||
{
|
||||
MmFreeMemory(SectionItem->ItemName);
|
||||
|
|
Loading…
Reference in a new issue