- Fix a mistake, led to usage of unitialized memory and then freeing it.

svn path=/trunk/; revision=29398
This commit is contained in:
Aleksey Bragin 2007-10-05 17:08:23 +00:00
parent 5e3641128f
commit 5e5a42e89b
2 changed files with 2 additions and 6 deletions

View file

@ -43,7 +43,6 @@ HIVE_LIST_ENTRY CmpMachineHiveList[5];
UNICODE_STRING CmSymbolicLinkValueName =
RTL_CONSTANT_STRING(L"SymbolicLinkValue");
UNICODE_STRING CmpSystemStartOptions;
UNICODE_STRING CmpLoadOptions;
BOOLEAN CmpShareSystemHives;

View file

@ -167,13 +167,10 @@ CmpSetSystemValues(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
&KeyName,
0,
REG_SZ,
CmpSystemStartOptions.Buffer,
CmpSystemStartOptions.Length);
CmpLoadOptions.Buffer,
CmpLoadOptions.Length);
if (!NT_SUCCESS(Status)) goto Quickie;
/* Free the options now */
ExFreePool(CmpSystemStartOptions.Buffer);
/* Setup value name for system boot device */
RtlInitUnicodeString(&KeyName, L"SystemBootDevice");
RtlCreateUnicodeStringFromAsciiz(&ValueName, LoaderBlock->NtBootPathName);