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:
Hervé Poussineau 2007-12-26 16:18:15 +00:00
parent 361a5b6d9f
commit 8003f935df

View file

@ -71,12 +71,11 @@ SmpEnvironmentQueryRoutine(IN PWSTR ValueName,
IN PVOID EntryContext)
{
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;
DPRINT("ValueData '%S'\n", (PWSTR)ValueData);
return SmpSetEnvironmentVariable(Context,ValueName,ValueData);
}