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 =
|
UNICODE_STRING CmSymbolicLinkValueName =
|
||||||
RTL_CONSTANT_STRING(L"SymbolicLinkValue");
|
RTL_CONSTANT_STRING(L"SymbolicLinkValue");
|
||||||
|
|
||||||
UNICODE_STRING CmpSystemStartOptions;
|
|
||||||
UNICODE_STRING CmpLoadOptions;
|
UNICODE_STRING CmpLoadOptions;
|
||||||
|
|
||||||
BOOLEAN CmpShareSystemHives;
|
BOOLEAN CmpShareSystemHives;
|
||||||
|
|
|
@ -167,13 +167,10 @@ CmpSetSystemValues(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
&KeyName,
|
&KeyName,
|
||||||
0,
|
0,
|
||||||
REG_SZ,
|
REG_SZ,
|
||||||
CmpSystemStartOptions.Buffer,
|
CmpLoadOptions.Buffer,
|
||||||
CmpSystemStartOptions.Length);
|
CmpLoadOptions.Length);
|
||||||
if (!NT_SUCCESS(Status)) goto Quickie;
|
if (!NT_SUCCESS(Status)) goto Quickie;
|
||||||
|
|
||||||
/* Free the options now */
|
|
||||||
ExFreePool(CmpSystemStartOptions.Buffer);
|
|
||||||
|
|
||||||
/* Setup value name for system boot device */
|
/* Setup value name for system boot device */
|
||||||
RtlInitUnicodeString(&KeyName, L"SystemBootDevice");
|
RtlInitUnicodeString(&KeyName, L"SystemBootDevice");
|
||||||
RtlCreateUnicodeStringFromAsciiz(&ValueName, LoaderBlock->NtBootPathName);
|
RtlCreateUnicodeStringFromAsciiz(&ValueName, LoaderBlock->NtBootPathName);
|
||||||
|
|
Loading…
Reference in a new issue