Author: tfaber
Date: Sun Jul  8 16:04:39 2012
New Revision: 56853

URL: http://svn.reactos.org/svn/reactos?rev=56853&view=rev
Log:
[SMSS]
- Fix an NTSTATUS vs boolean issue
- Fix an MSVC warning

Modified:
    trunk/reactos/base/system/smss2/smss.c

Modified: trunk/reactos/base/system/smss2/smss.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss2/smss.c?rev=56853&r1=56852&r2=56853&view=diff
==============================================================================
--- trunk/reactos/base/system/smss2/smss.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss2/smss.c [iso-8859-1] Sun Jul  8 16:04:39 2012
@@ -160,8 +160,8 @@
                  IN PUNICODE_STRING Arguments,
                  IN ULONG Flags)
 {
-    ANSI_STRING DestinationString;
-    CHAR SourceString[256];
+    ANSI_STRING MessageString;
+    CHAR MessageBuffer[256];
     UNICODE_STRING Destination;
     WCHAR Buffer[1024];
     BOOLEAN BootState, BootOkay, ShutdownOkay;
@@ -173,13 +173,13 @@
     if (Flags & SMP_INVALID_PATH)
     {
         /* It wasn't, so create an error message to print on the screen */
-        sprintf_nt(SourceString,
+        sprintf_nt(MessageBuffer,
                    "%wZ program not found - skipping AUTOCHECK\n",
                    FileName);
-        RtlInitAnsiString(&DestinationString, SourceString);
-        if (RtlAnsiStringToUnicodeString(&Destination,
-                                         &DestinationString,
-                                         TRUE))
+        RtlInitAnsiString(&MessageString, MessageBuffer);
+        if (NT_SUCCESS(RtlAnsiStringToUnicodeString(&Destination,
+                                                    &MessageString,
+                                                    TRUE)))
         {
             /* And show it */
             NtDisplayString(&Destination);
@@ -469,7 +469,7 @@
     ASSERT(NT_SUCCESS(Status));
 
     /* Save the debug flag if it was passed */
-    if (DebugFlag) SmpDebug = DebugFlag;
+    if (DebugFlag) SmpDebug = DebugFlag != 0;
 
     /* Build the hard error parameters */
     Parameters[0] = (ULONG_PTR)&DbgString;


Reply via email to