[KERNEL32]: Minor code formatting.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 17 Dec 2014 22:07:41 +0000 (22:07 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 17 Dec 2014 22:07:41 +0000 (22:07 +0000)
svn path=/trunk/; revision=65709

reactos/dll/win32/kernel32/client/console/init.c
reactos/dll/win32/kernel32/client/dllmain.c

index 985cb66..2ca0083 100644 (file)
@@ -282,7 +282,7 @@ IsConsoleApp(VOID)
 static BOOLEAN
 ConnectConsole(IN PWSTR SessionDir,
                IN PCONSRV_API_CONNECTINFO ConnectInfo,
-               OUT PBOOLEAN IsServerProcess)
+               OUT PBOOLEAN InServerProcess)
 {
     NTSTATUS Status;
     ULONG ConnectInfoSize = sizeof(*ConnectInfo);
@@ -295,7 +295,7 @@ ConnectConsole(IN PWSTR SessionDir,
                                       CONSRV_SERVERDLL_INDEX,
                                       ConnectInfo,
                                       &ConnectInfoSize,
-                                      IsServerProcess);
+                                      InServerProcess);
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("Failed to connect to the Console Server (Status %lx)\n", Status);
@@ -303,7 +303,7 @@ ConnectConsole(IN PWSTR SessionDir,
     }
 
     /* Nothing to do for server-to-server */
-    if (*IsServerProcess) return TRUE;
+    if (*InServerProcess) return TRUE;
 
     /* Nothing to do if this is not a console app */
     if (!ConnectInfo->IsConsoleApp) return TRUE;
@@ -338,7 +338,7 @@ ConDllInitialize(IN ULONG Reason,
 {
     NTSTATUS Status;
     PRTL_USER_PROCESS_PARAMETERS Parameters = NtCurrentPeb()->ProcessParameters;
-    BOOLEAN IsServerProcess;
+    BOOLEAN InServerProcess = FALSE;
     CONSRV_API_CONNECTINFO ConnectInfo;
     LCID lcid;
 
@@ -507,14 +507,14 @@ ConDllInitialize(IN ULONG Reason,
     /* Connect to the Console Server */
     if (!ConnectConsole(SessionDir,
                         &ConnectInfo,
-                        &IsServerProcess))
+                        &InServerProcess))
     {
         // DPRINT1("Failed to connect to the Console Server (Status %lx)\n", Status);
         return FALSE;
     }
 
     /* If we are not doing server-to-server init and if this is a console app... */
-    if (!IsServerProcess && ConnectInfo.IsConsoleApp)
+    if (!InServerProcess && ConnectInfo.IsConsoleApp)
     {
         /* ... set the handles that we got */
         if (Parameters->ConsoleHandle == NULL)
index f48199f..d0d2c99 100644 (file)
@@ -17,8 +17,7 @@
 /* GLOBALS *******************************************************************/
 
 PBASE_STATIC_SERVER_DATA BaseStaticServerData;
-
-BOOLEAN BaseRunningInServerProcess;
+BOOLEAN BaseRunningInServerProcess = FALSE;
 
 WCHAR BaseDefaultPathBuffer[6140];
 
@@ -117,7 +116,7 @@ DllMain(HANDLE hDll,
             /* Initialize default path to NULL */
             RtlInitUnicodeString(&BaseDefaultPath, NULL);
 
-            /* Setup the right Object Directory path */
+            /* Setup the Object Directory path */
             if (!SessionId)
             {
                 /* Use the raw path */