mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
Add support for REG_EXPAND_SZ variables
Display the string value only if it is a string svn path=/trunk/; revision=31449
This commit is contained in:
parent
361a5b6d9f
commit
8003f935df
1 changed files with 2 additions and 3 deletions
|
@ -71,12 +71,11 @@ SmpEnvironmentQueryRoutine(IN PWSTR ValueName,
|
||||||
IN PVOID EntryContext)
|
IN PVOID EntryContext)
|
||||||
{
|
{
|
||||||
DPRINT("ValueName '%S' Type %lu Length %lu\n", ValueName, ValueType, ValueLength);
|
DPRINT("ValueName '%S' Type %lu Length %lu\n", ValueName, ValueType, ValueLength);
|
||||||
DPRINT("ValueData '%S'\n", (PWSTR)ValueData);
|
|
||||||
|
|
||||||
if (ValueType != REG_SZ)
|
if (ValueType != REG_SZ && ValueType != REG_EXPAND_SZ)
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
||||||
|
DPRINT("ValueData '%S'\n", (PWSTR)ValueData);
|
||||||
return SmpSetEnvironmentVariable(Context,ValueName,ValueData);
|
return SmpSetEnvironmentVariable(Context,ValueName,ValueData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue