projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NTOS:EX]
[reactos.git]
/
reactos
/
ntoskrnl
/
ex
/
sysinfo.c
diff --git
a/reactos/ntoskrnl/ex/sysinfo.c
b/reactos/ntoskrnl/ex/sysinfo.c
index
e95c29a
..
b9fed78
100644
(file)
--- a/
reactos/ntoskrnl/ex/sysinfo.c
+++ b/
reactos/ntoskrnl/ex/sysinfo.c
@@
-812,6
+812,10
@@
QSI_DEF(SystemProcessInformation)
{
SpiCurrent = (PSYSTEM_PROCESS_INFORMATION) Current;
{
SpiCurrent = (PSYSTEM_PROCESS_INFORMATION) Current;
+ /* Lock the Process */
+ KeEnterCriticalRegion();
+ ExAcquirePushLockShared(&Process->ProcessLock);
+
if ((Process->ProcessExiting) &&
(Process->Pcb.Header.SignalState) &&
!(Process->ActiveThreads) &&
if ((Process->ProcessExiting) &&
(Process->Pcb.Header.SignalState) &&
!(Process->ActiveThreads) &&
@@
-821,6
+825,10
@@
QSI_DEF(SystemProcessInformation)
Process, Process->ImageFileName, Process->UniqueProcessId);
CurrentSize = 0;
ImageNameMaximumLength = 0;
Process, Process->ImageFileName, Process->UniqueProcessId);
CurrentSize = 0;
ImageNameMaximumLength = 0;
+
+ /* Unlock the Process */
+ ExReleasePushLockShared(&Process->ProcessLock);
+ KeLeaveCriticalRegion();
goto Skip;
}
goto Skip;
}
@@
-955,6
+963,10
@@
QSI_DEF(SystemProcessInformation)
ProcessImageName = NULL;
}
ProcessImageName = NULL;
}
+ /* Unlock the Process */
+ ExReleasePushLockShared(&Process->ProcessLock);
+ KeLeaveCriticalRegion();
+
/* Handle idle process entry */
Skip:
if (Process == PsIdleProcess) Process = NULL;
/* Handle idle process entry */
Skip:
if (Process == PsIdleProcess) Process = NULL;