forked from Mirrors/wine-wine
ntoskrnl.exe: Export and set PsInitialSystemProcess.
Signed-off-by: Derek Lesho <dereklesho52@Gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>stable
parent
6ebc223955
commit
1064e20a3f
|
@ -939,6 +939,8 @@ static void unload_driver( struct wine_rb_entry *entry, void *context )
|
|||
CloseServiceHandle( (void *)service_handle );
|
||||
}
|
||||
|
||||
PEPROCESS PsInitialSystemProcess = NULL;
|
||||
|
||||
/***********************************************************************
|
||||
* wine_ntoskrnl_main_loop (Not a Windows API)
|
||||
*/
|
||||
|
@ -952,6 +954,8 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event )
|
|||
void *in_buff = NULL;
|
||||
HANDLE handles[2];
|
||||
|
||||
/* Set the system process global before setting up the request thread trickery */
|
||||
PsInitialSystemProcess = IoGetCurrentProcess();
|
||||
request_thread = GetCurrentThreadId();
|
||||
|
||||
handles[0] = stop_event;
|
||||
|
|
|
@ -906,7 +906,7 @@
|
|||
@ stub PsGetThreadWin32Thread
|
||||
@ stdcall PsGetVersion(ptr ptr ptr ptr)
|
||||
@ stdcall PsImpersonateClient(ptr ptr long long long)
|
||||
@ stub PsInitialSystemProcess
|
||||
@ extern PsInitialSystemProcess
|
||||
@ stub PsIsProcessBeingDebugged
|
||||
@ stub PsIsSystemThread
|
||||
@ stub PsIsThreadImpersonating
|
||||
|
|
Loading…
Reference in New Issue