Author: hpoussin
Date: Wed Dec 26 19:18:15 2007
New Revision: 31449
URL:
http://svn.reactos.org/svn/reactos?rev=31449&view=rev
Log:
Add support for REG_EXPAND_SZ variables
Display the string value only if it is a string
Modified:
trunk/reactos/base/system/smss/initenv.c
Modified: trunk/reactos/base/system/smss/initenv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/initenv.c…
==============================================================================
--- trunk/reactos/base/system/smss/initenv.c (original)
+++ trunk/reactos/base/system/smss/initenv.c Wed Dec 26 19:18:15 2007
@@ -71,12 +71,11 @@
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);
}