Author: hbelusca
Date: Fri Jul 19 22:32:34 2013
New Revision: 59518
URL: http://svn.reactos.org/svn/reactos?rev=59518&view=rev
Log:
[SMSS]
- In the token parsing function SmpParseToken, just return success directly if the input string has zero length, instead of running code which does nothing at the end, because the length was zero...
- Give a default value for the "BootExecute" entry in the SMSS registry configuration table (this value is used when there is no BootExecute registry value inside HKLM\System\CurrentControlSet\Control\Session Manager) and precise that it is a multi-string value.
- Remove a redundant "Environment" entry in this table, too.
Modified:
trunk/reactos/base/system/smss/sminit.c
trunk/reactos/base/system/smss/smutil.c
Modified: trunk/reactos/base/system/smss/sminit.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/sminit.c?…
==============================================================================
--- trunk/reactos/base/system/smss/sminit.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/sminit.c [iso-8859-1] Fri Jul 19 22:32:34 2013
@@ -630,8 +630,8 @@
0,
L"BootExecute",
&SmpBootExecuteList,
- REG_NONE,
- NULL,
+ REG_MULTI_SZ,
+ L"autocheck AutoChk.exe *\0",
0
},
@@ -710,16 +710,6 @@
RTL_QUERY_REGISTRY_SUBKEY,
L"KnownDlls",
&SmpKnownDllsList,
- REG_NONE,
- NULL,
- 0
- },
-
- {
- SmpConfigureEnvironment,
- RTL_QUERY_REGISTRY_SUBKEY,
- L"Environment",
- NULL,
REG_NONE,
NULL,
0
Modified: trunk/reactos/base/system/smss/smutil.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/smutil.c?…
==============================================================================
--- trunk/reactos/base/system/smss/smutil.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/smutil.c [iso-8859-1] Fri Jul 19 22:32:34 2013
@@ -161,6 +161,9 @@
/* Save the input length */
InputLength = Input->Length;
+
+ /* If the input string is empty, just return */
+ if (InputLength == 0) return STATUS_SUCCESS;
/* Parse the buffer until the first character */
p = Input->Buffer;