mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Optimize PsGetCurrentProcess as well.
svn path=/trunk/; revision=24640
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user