mirror of
https://github.com/reactos/reactos.git
synced 2024-10-16 06:04:13 +00:00
- Fix a mistake, led to usage of unitialized memory and then freeing it.
svn path=/trunk/; revision=29398
This commit is contained in:
parent
5e3641128f
commit
5e5a42e89b
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue