Author: ion
Date: Sun Feb 19 20:16:36 2012
New Revision: 55722
URL:
http://svn.reactos.org/svn/reactos?rev=55722&view=rev
Log:
[CSRSRV]: Some misc cleanup of dead code. No functional change.
Modified:
trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c
trunk/reactos/subsystems/win32/csrss/csrss.c
trunk/reactos/subsystems/win32/csrss/win32csr/dllmain.c
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csr…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c [iso-8859-1] Sun Feb 19
20:16:36 2012
@@ -839,34 +839,7 @@
Request->ClientId.UniqueProcess,
Request->ClientId.UniqueThread);
}
-#if 0
- if (!NT_SUCCESS(Status)) return Status;
-
- Status = RtlCreateUserThread(NtCurrentProcess(),
- NULL,
- TRUE,
- 0,
- 0,
- 0,
- (PTHREAD_START_ROUTINE)ClientConnectionThread,
- NULL,
- & ServerThread,
- &ClientId);
- if (!NT_SUCCESS(Status))
- {
- DPRINT1("CSR: Unable to create server thread\n");
- return Status;
- }
-
- CsrAddStaticServerThread(ServerThread, &ClientId, 0);
-
- NtResumeThread(ServerThread, NULL);
-
- NtClose(ServerThread);
-
- Status = STATUS_SUCCESS;
- DPRINT("CSR: %s done\n", __FUNCTION__);
-#endif
+
return Status;
}
@@ -1055,7 +1028,7 @@
DPRINT1("CSRSRV: FATAL ERROR. CsrThread is Idle while holding %lu
critical sections\n",
Teb->CountOfOwnedCriticalSections);
DPRINT1("CSRSRV: Last Receive Message %lx ReplyMessage %lx\n",
- &Request, Reply);
+ Request, Reply);
DbgBreakPoint();
}
Modified: trunk/reactos/subsystems/win32/csrss/csrss.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csr…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/csrss.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/csrss.c [iso-8859-1] Sun Feb 19 20:16:36 2012
@@ -60,14 +60,12 @@
{
/* Raise a hard error */
DPRINT1("CSRSS: Could not raise IOPL: %x\n", Status);
- #if 0
Status = NtRaiseHardError(STATUS_IO_PRIVILEGE_FAILED,
0,
0,
NULL,
OptionOk,
&Response);
- #endif
}
/* Initialize CSR through CSRSRV */
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/dllmain.c [iso-8859-1] Sun Feb 19
20:16:36 2012
@@ -326,12 +326,7 @@
NTSTATUS
WINAPI
-#if 1
Win32CsrInitialization(IN PCSR_SERVER_DLL ServerDll)
-#else
-Win32CsrInitialization(PCSRSS_API_DEFINITION *ApiDefinitions,
- PCSRPLUGIN_SERVER_PROCS ServerProcs)
-#endif
{
HANDLE ServerThread;
CLIENT_ID ClientId;
@@ -347,19 +342,12 @@
CsrInitConsoleSupport();
/* HACK */
-#if 1
ServerDll->DispatchTable = (PVOID)Win32CsrApiDefinitions;
ServerDll->HighestApiSupported = 0xDEADBABE;
ServerDll->HardErrorCallback = Win32CsrHardError;
ServerDll->NewProcessCallback = Win32CsrDuplicateHandleTable;
ServerDll->DisconnectCallback = Win32CsrReleaseConsole;
-#else
- *ApiDefinitions = Win32CsrApiDefinitions;
- ServerProcs->HardErrorProc = Win32CsrHardError;
- ServerProcs->ProcessInheritProc = Win32CsrDuplicateHandleTable;
- ServerProcs->ProcessDeletedProc = Win32CsrReleaseConsole;
-#endif
RtlInitializeCriticalSection(&Win32CsrDefineDosDeviceCritSec);
InitializeListHead(&DosDeviceHistory);