mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Fix win32k to use new EPROCESS defintion
svn path=/trunk/; revision=15066
This commit is contained in:
@@ -93,7 +93,7 @@ Win32kProcessCallback (struct _EPROCESS *Process,
|
||||
{
|
||||
PW32PROCESS Win32Process;
|
||||
|
||||
Win32Process = Process->Win32Process;
|
||||
Win32Process = (PW32PROCESS)Process->Win32Process;
|
||||
if (Create)
|
||||
{
|
||||
DPRINT("Creating W32 process PID:%d at IRQ level: %lu\n", Process->UniqueProcessId, KeGetCurrentIrql());
|
||||
|
||||
@@ -234,9 +234,9 @@ IntDestroyMenuObject(PMENU_OBJECT MenuObject,
|
||||
|
||||
if(RemoveFromProcess)
|
||||
{
|
||||
IntLockProcessMenus(MenuObject->Process->Win32Process);
|
||||
IntLockProcessMenus((PW32PROCESS)MenuObject->Process->Win32Process);
|
||||
RemoveEntryList(&MenuObject->ListEntry);
|
||||
IntUnLockProcessMenus(MenuObject->Process->Win32Process);
|
||||
IntUnLockProcessMenus((PW32PROCESS)MenuObject->Process->Win32Process);
|
||||
}
|
||||
|
||||
Status = ObReferenceObjectByHandle(MenuObject->Process->Win32WindowStation,
|
||||
|
||||
@@ -71,12 +71,12 @@ IntRegisterLogonProcess(HANDLE ProcessId, BOOL Register)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
LogonProcess = Process->Win32Process;
|
||||
LogonProcess = (PW32PROCESS)Process->Win32Process;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Deregister the logon process */
|
||||
if (LogonProcess != Process->Win32Process)
|
||||
if (LogonProcess != (PW32PROCESS)Process->Win32Process)
|
||||
{
|
||||
ObDereferenceObject(Process);
|
||||
return FALSE;
|
||||
@@ -1277,7 +1277,7 @@ NtUserGetGuiResources(
|
||||
return 0;
|
||||
}
|
||||
|
||||
W32Process = Process->Win32Process;
|
||||
W32Process = (PW32PROCESS)Process->Win32Process;
|
||||
if(!W32Process)
|
||||
{
|
||||
ObDereferenceObject(Process);
|
||||
|
||||
@@ -566,7 +566,7 @@ DestroyThreadWindows(struct _ETHREAD *Thread)
|
||||
ULONG Cnt = 0;
|
||||
|
||||
Win32Thread = Thread->Tcb.Win32Thread;
|
||||
Win32Process = Thread->ThreadsProcess->Win32Process;
|
||||
Win32Process = (PW32PROCESS)Thread->ThreadsProcess->Win32Process;
|
||||
|
||||
IntLockThreadWindows(Win32Thread);
|
||||
Current = Win32Thread->WindowListHead.Flink;
|
||||
|
||||
@@ -660,7 +660,7 @@ GDI_CleanupForProcess (struct _EPROCESS *Process)
|
||||
{
|
||||
KeAttachProcess(Process);
|
||||
}
|
||||
W32Process = Process->Win32Process;
|
||||
W32Process = (PW32PROCESS)Process->Win32Process;
|
||||
ASSERT(W32Process);
|
||||
|
||||
if(W32Process->GDIObjects > 0)
|
||||
@@ -1110,7 +1110,7 @@ LockHandle:
|
||||
Status = PsLookupProcessByProcessId((HANDLE)((ULONG_PTR)PrevProcId & ~0x1), &OldProcess);
|
||||
if(NT_SUCCESS(Status))
|
||||
{
|
||||
W32Process = OldProcess->Win32Process;
|
||||
W32Process = (PW32PROCESS)OldProcess->Win32Process;
|
||||
if(W32Process != NULL)
|
||||
{
|
||||
InterlockedDecrement(&W32Process->GDIObjects);
|
||||
@@ -1221,7 +1221,7 @@ LockHandle:
|
||||
Status = PsLookupProcessByProcessId((HANDLE)((ULONG_PTR)PrevProcId & ~0x1), &OldProcess);
|
||||
if(NT_SUCCESS(Status))
|
||||
{
|
||||
W32Process = OldProcess->Win32Process;
|
||||
W32Process = (PW32PROCESS)OldProcess->Win32Process;
|
||||
if(W32Process != NULL)
|
||||
{
|
||||
InterlockedDecrement(&W32Process->GDIObjects);
|
||||
@@ -1235,7 +1235,7 @@ LockHandle:
|
||||
ProcessId = PsGetProcessId(NewOwner);
|
||||
|
||||
/* Increase the new process' object counter */
|
||||
W32Process = NewOwner->Win32Process;
|
||||
W32Process = (PW32PROCESS)NewOwner->Win32Process;
|
||||
if(W32Process != NULL)
|
||||
{
|
||||
InterlockedIncrement(&W32Process->GDIObjects);
|
||||
|
||||
Reference in New Issue
Block a user