Author: hbelusca
Date: Wed Dec 17 22:07:41 2014
New Revision: 65709
URL:
http://svn.reactos.org/svn/reactos?rev=65709&view=rev
Log:
[KERNEL32]: Minor code formatting.
Modified:
trunk/reactos/dll/win32/kernel32/client/console/init.c
trunk/reactos/dll/win32/kernel32/client/dllmain.c
Modified: trunk/reactos/dll/win32/kernel32/client/console/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/console/init.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/console/init.c [iso-8859-1] Wed Dec 17
22:07:41 2014
@@ -282,7 +282,7 @@
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 @@
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 @@
}
/* 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 @@
{
NTSTATUS Status;
PRTL_USER_PROCESS_PARAMETERS Parameters = NtCurrentPeb()->ProcessParameters;
- BOOLEAN IsServerProcess;
+ BOOLEAN InServerProcess = FALSE;
CONSRV_API_CONNECTINFO ConnectInfo;
LCID lcid;
@@ -507,14 +507,14 @@
/* 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)
Modified: trunk/reactos/dll/win32/kernel32/client/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/dllmain.c [iso-8859-1] Wed Dec 17 22:07:41
2014
@@ -17,8 +17,7 @@
/* GLOBALS *******************************************************************/
PBASE_STATIC_SERVER_DATA BaseStaticServerData;
-
-BOOLEAN BaseRunningInServerProcess;
+BOOLEAN BaseRunningInServerProcess = FALSE;
WCHAR BaseDefaultPathBuffer[6140];
@@ -117,7 +116,7 @@
/* 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 */