Use RTL_CONSTANT_STRING instead of RtlRos macro Modified: trunk/reactos/ntoskrnl/cm/registry.c Modified: trunk/reactos/ntoskrnl/ex/callback.c _____
Modified: trunk/reactos/ntoskrnl/cm/registry.c --- trunk/reactos/ntoskrnl/cm/registry.c 2005-06-19 20:28:20 UTC (rev 16110) +++ trunk/reactos/ntoskrnl/cm/registry.c 2005-06-19 20:43:13 UTC (rev 16111) @@ -650,7 +650,7 @@
DPRINT("Link target '%S'\n", TargetNameBuffer);
- RtlInitUnicodeString(&LinkName, + LinkName = RTL_CONSTANT_STRING(
L"\Registry\Machine\SYSTEM\CurrentControlSet"); InitializeObjectAttributes(&ObjectAttributes, &LinkName, @@ -670,7 +670,7 @@ return(Status); }
- RtlInitUnicodeString(&LinkValue, + LinkValue = RTL_CONSTANT_STRING( L"SymbolicLinkValue"); Status = ZwSetValueKey(KeyHandle, &LinkValue, @@ -925,7 +925,7 @@ NTSTATUS Status;
/* Create 'ControlSet001' key */ - RtlInitUnicodeString(&ControlSetKeyName, + ControlSetKeyName = RTL_CONSTANT_STRING(
L"\Registry\Machine\SYSTEM\ControlSet001"); InitializeObjectAttributes (&ObjectAttributes, &ControlSetKeyName, @@ -947,7 +947,7 @@ ZwClose (KeyHandle);
/* Link 'CurrentControlSet' to 'ControlSet001' key */ - RtlInitUnicodeString (&ControlSetLinkName, + ControlSetLinkName = RTL_CONSTANT_STRING(
L"\Registry\Machine\SYSTEM\CurrentControlSet"); InitializeObjectAttributes (&ObjectAttributes, &ControlSetLinkName, @@ -967,7 +967,7 @@ return Status; }
- RtlInitUnicodeString (&ControlSetValueName, + ControlSetValueName = RTL_CONSTANT_STRING( L"SymbolicLinkValue"); Status = ZwSetValueKey (KeyHandle, &ControlSetValueName, @@ -1008,7 +1008,7 @@
if (SetupBoot == TRUE) { - RtlInitUnicodeString(&KeyName, + KeyName = RTL_CONSTANT_STRING( L"\Registry\Machine\HARDWARE"); InitializeObjectAttributes(&ObjectAttributes, &KeyName, @@ -1024,7 +1024,7 @@ return(Status); }
- RtlInitUnicodeString(&ValueName, + ValueName = RTL_CONSTANT_STRING( L"InstallPath");
BufferSize = sizeof(KEY_VALUE_PARTIAL_INFORMATION) + 4096; _____
Modified: trunk/reactos/ntoskrnl/ex/callback.c --- trunk/reactos/ntoskrnl/ex/callback.c 2005-06-19 20:28:20 UTC (rev 16110) +++ trunk/reactos/ntoskrnl/ex/callback.c 2005-06-19 20:43:13 UTC (rev 16111) @@ -65,7 +65,7 @@
}
/* Initialize the Object */ - RtlInitUnicodeString(&DirName, L"\Callback" ); + DirName = RTL_CONSTANT_STRING(L"\Callback" ); InitializeObjectAttributes( &ObjectAttributes, &DirName,