mirror of
https://github.com/reactos/reactos.git
synced 2024-08-27 05:38:41 +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
|
NTAPI
|
||||||
BaseClientDisconnectRoutine(IN PCSR_PROCESS CsrProcess)
|
BaseClientDisconnectRoutine(IN PCSR_PROCESS CsrProcess)
|
||||||
{
|
{
|
||||||
/* Cleanup the VDM console records */
|
/* Cleanup VDM resources */
|
||||||
BaseSrvCleanupVdmRecords(HandleToUlong(CsrProcess->ClientId.UniqueProcess));
|
BaseSrvCleanupVDMResources(CsrProcess);
|
||||||
}
|
}
|
||||||
|
|
||||||
CSR_SERVER_DLL_INIT(ServerDllInitialization)
|
CSR_SERVER_DLL_INIT(ServerDllInitialization)
|
||||||
|
|
|
@ -228,11 +228,14 @@ VOID NTAPI BaseSrvFreeVDMInfo(PVDM_COMMAND_INFO CommandInfo)
|
||||||
RtlFreeHeap(BaseSrvHeap, 0, 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_CONSOLE_RECORD ConsoleRecord = NULL;
|
||||||
PVDM_DOS_RECORD DosRecord;
|
PVDM_DOS_RECORD DosRecord;
|
||||||
|
PLIST_ENTRY i;
|
||||||
|
|
||||||
/* Enter the critical section */
|
/* Enter the critical section */
|
||||||
RtlEnterCriticalSection(&DosCriticalSection);
|
RtlEnterCriticalSection(&DosCriticalSection);
|
||||||
|
|
|
@ -49,7 +49,7 @@ ULONG NTAPI GetNextDosSesId(VOID);
|
||||||
BOOLEAN NTAPI BaseSrvIsVdmAllowed(VOID);
|
BOOLEAN NTAPI BaseSrvIsVdmAllowed(VOID);
|
||||||
NTSTATUS NTAPI BaseSrvCreatePairWaitHandles(PHANDLE ServerEvent, PHANDLE ClientEvent);
|
NTSTATUS NTAPI BaseSrvCreatePairWaitHandles(PHANDLE ServerEvent, PHANDLE ClientEvent);
|
||||||
VOID NTAPI BaseSrvFreeVDMInfo(PVDM_COMMAND_INFO CommandInfo);
|
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);
|
BOOLEAN NTAPI BaseSrvCopyCommand(PBASE_CHECK_VDM CheckVdmRequest, PVDM_DOS_RECORD DosRecord);
|
||||||
NTSTATUS NTAPI BaseSrvFillCommandInfo(
|
NTSTATUS NTAPI BaseSrvFillCommandInfo(
|
||||||
PVDM_COMMAND_INFO CommandInfo,
|
PVDM_COMMAND_INFO CommandInfo,
|
||||||
|
|
Loading…
Reference in a new issue