mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 13:59:25 +00:00
- Optimize PsGetCurrentProcess as well.
svn path=/trunk/; revision=24640
This commit is contained in:
parent
edaa6996f4
commit
bca3708172
2 changed files with 12 additions and 2 deletions
|
@ -17,8 +17,10 @@
|
|||
|
||||
#ifdef _NTOSKRNL_
|
||||
|
||||
#define KeGetCurrentThread _KeGetCurrentThread
|
||||
#define KeGetPreviousMode _KeGetPreviousMode
|
||||
#define KeGetCurrentThread _KeGetCurrentThread
|
||||
#define KeGetPreviousMode _KeGetPreviousMode
|
||||
#undef PsGetCurrentProcess
|
||||
#define PsGetCurrentProcess _PsGetCurrentProcess
|
||||
|
||||
#include "ke.h"
|
||||
#include "i386/mm.h"
|
||||
|
|
|
@ -179,3 +179,11 @@ PspUnlockThreadSecurityExclusive(IN PETHREAD Thread)
|
|||
/* Leave Critical Thread */
|
||||
KeLeaveCriticalRegion();
|
||||
}
|
||||
|
||||
PEPROCESS
|
||||
FORCEINLINE
|
||||
_PsGetCurrentProcess(VOID)
|
||||
{
|
||||
/* Get the current process */
|
||||
return (PEPROCESS)KeGetCurrentThread()->ApcState.Process;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue