Fix SmpSetEnvironmentVariable return status
authorSylvain Petreolle <spetreolle@yahoo.fr>
Fri, 22 Feb 2008 18:29:37 +0000 (18:29 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Fri, 22 Feb 2008 18:29:37 +0000 (18:29 +0000)
svn path=/trunk/; revision=32455

reactos/base/system/smss/initenv.c

index 013ce2b..7df3284 100644 (file)
@@ -54,11 +54,9 @@ SmpSetEnvironmentVariable(IN PVOID Context,
                          ValueName);
     RtlInitUnicodeString(&EnvValue,
                          (PWSTR)ValueData);
                          ValueName);
     RtlInitUnicodeString(&EnvValue,
                          (PWSTR)ValueData);
-    RtlSetEnvironmentVariable(Context,
+    return RtlSetEnvironmentVariable(Context,
                               &EnvVariable,
                               &EnvValue);
                               &EnvVariable,
                               &EnvValue);
-
-    return STATUS_SUCCESS;
 }
 
 
 }