mirror of
https://github.com/reactos/reactos.git
synced 2024-08-26 21:28:48 +00:00
[BASESRV]: Use BaseSrvCleanupVDMResources taking a CSR_PROCESS structure instead of just its PID to be able to possibly use more things to do VDM cleanup (in the future).
svn path=/trunk/; revision=65686
This commit is contained in:
parent
52ac8586cf
commit
5007c54522
|
@ -599,8 +599,8 @@ VOID
|
|||
NTAPI
|
||||
BaseClientDisconnectRoutine(IN PCSR_PROCESS CsrProcess)
|
||||
{
|
||||
/* Cleanup the VDM console records */
|
||||
BaseSrvCleanupVdmRecords(HandleToUlong(CsrProcess->ClientId.UniqueProcess));
|
||||
/* Cleanup VDM resources */
|
||||
BaseSrvCleanupVDMResources(CsrProcess);
|
||||
}
|
||||
|
||||
CSR_SERVER_DLL_INIT(ServerDllInitialization)
|
||||
|
|
|
@ -228,11 +228,14 @@ VOID NTAPI BaseSrvFreeVDMInfo(PVDM_COMMAND_INFO CommandInfo)
|
|||
RtlFreeHeap(BaseSrvHeap, 0, CommandInfo);
|
||||
}
|
||||
|
||||
VOID NTAPI BaseSrvCleanupVdmRecords(ULONG ProcessId)
|
||||
VOID
|
||||
NTAPI
|
||||
BaseSrvCleanupVDMResources(IN PCSR_PROCESS CsrProcess)
|
||||
{
|
||||
PLIST_ENTRY i;
|
||||
ULONG ProcessId = HandleToUlong(CsrProcess->ClientId.UniqueProcess);
|
||||
PVDM_CONSOLE_RECORD ConsoleRecord = NULL;
|
||||
PVDM_DOS_RECORD DosRecord;
|
||||
PLIST_ENTRY i;
|
||||
|
||||
/* Enter the critical section */
|
||||
RtlEnterCriticalSection(&DosCriticalSection);
|
||||
|
|
|
@ -49,7 +49,7 @@ ULONG NTAPI GetNextDosSesId(VOID);
|
|||
BOOLEAN NTAPI BaseSrvIsVdmAllowed(VOID);
|
||||
NTSTATUS NTAPI BaseSrvCreatePairWaitHandles(PHANDLE ServerEvent, PHANDLE ClientEvent);
|
||||
VOID NTAPI BaseSrvFreeVDMInfo(PVDM_COMMAND_INFO CommandInfo);
|
||||
VOID NTAPI BaseSrvCleanupVdmRecords(ULONG ProcessId);
|
||||
VOID NTAPI BaseSrvCleanupVDMResources(IN PCSR_PROCESS CsrProcess);
|
||||
BOOLEAN NTAPI BaseSrvCopyCommand(PBASE_CHECK_VDM CheckVdmRequest, PVDM_DOS_RECORD DosRecord);
|
||||
NTSTATUS NTAPI BaseSrvFillCommandInfo(
|
||||
PVDM_COMMAND_INFO CommandInfo,
|
||||
|
|
Loading…
Reference in a new issue