[WIN32K]: Anecdotal formatting/renaming changes before reusing this code in other parts of wijn32k.

svn path=/trunk/; revision=65835
This commit is contained in:
Hermès Bélusca-Maïto 2014-12-26 12:06:43 +00:00
parent 5ad81a46e3
commit bf2b5fda05
3 changed files with 13 additions and 14 deletions

View file

@ -726,7 +726,7 @@ VOID NTAPI DesktopThreadMain()
classes will be allocated from the shared heap */ classes will be allocated from the shared heap */
UserRegisterSystemClasses(); UserRegisterSystemClasses();
while(TRUE) while (TRUE)
{ {
Ret = co_IntGetPeekMessage(&Msg, 0, 0, 0, PM_REMOVE, TRUE); Ret = co_IntGetPeekMessage(&Msg, 0, 0, 0, PM_REMOVE, TRUE);
if (Ret) if (Ret)
@ -1892,9 +1892,9 @@ IntMapDesktopView(IN PDESKTOP pdesk)
TRACE("IntMapDesktopView called for desktop object 0x%p\n", pdesk); TRACE("IntMapDesktopView called for desktop object 0x%p\n", pdesk);
ppi = PsGetCurrentProcessWin32Process(); ppi = PsGetCurrentProcessWin32Process();
PrevLink = &ppi->HeapMappings.Next;
/* Find out if another thread already mapped the desktop heap */ /* Find out if another thread already mapped the desktop heap */
PrevLink = &ppi->HeapMappings.Next;
HeapMapping = *PrevLink; HeapMapping = *PrevLink;
while (HeapMapping != NULL) while (HeapMapping != NULL)
{ {

View file

@ -153,7 +153,7 @@ RawInputThreadMain()
StartTheTimers(); StartTheTimers();
UserLeave(); UserLeave();
for(;;) for (;;)
{ {
if (!ghMouseDevice) if (!ghMouseDevice)
{ {
@ -300,7 +300,7 @@ RawInputThreadMain()
* CreateSystemThreads * CreateSystemThreads
* *
* Called form dedicated thread in CSRSS. RIT is started in context of this * Called form dedicated thread in CSRSS. RIT is started in context of this
* thread because it needs valid Win32 process with TEB initialized * thread because it needs valid Win32 process with TEB initialized.
*/ */
DWORD NTAPI DWORD NTAPI
CreateSystemThreads(UINT Type) CreateSystemThreads(UINT Type)

View file

@ -53,7 +53,7 @@ DbgPostServiceHook(ULONG ulSyscallId, ULONG_PTR ulResult)
static static
NTSTATUS NTSTATUS
CreateProcessInfo(PEPROCESS Process) UserCreateProcessInfo(PEPROCESS Process)
{ {
PPROCESSINFO ppiCurrent; PPROCESSINFO ppiCurrent;
NTSTATUS Status; NTSTATUS Status;
@ -94,7 +94,7 @@ CreateProcessInfo(PEPROCESS Process)
TRACE_CH(UserProcess,"Allocated ppi 0x%p for PID:0x%lx\n", ppiCurrent, HandleToUlong(Process->UniqueProcessId)); TRACE_CH(UserProcess,"Allocated ppi 0x%p for PID:0x%lx\n", ppiCurrent, HandleToUlong(Process->UniqueProcessId));
/* map the global heap into the process */ /* Map the global heap into the process */
Offset.QuadPart = 0; Offset.QuadPart = 0;
Status = MmMapViewOfSection(GlobalUserHeapSection, Status = MmMapViewOfSection(GlobalUserHeapSection,
PsGetCurrentProcess(), PsGetCurrentProcess(),
@ -133,14 +133,13 @@ CreateProcessInfo(PEPROCESS Process)
KeInitializeEvent(ppiCurrent->InputIdleEvent, NotificationEvent, FALSE); KeInitializeEvent(ppiCurrent->InputIdleEvent, NotificationEvent, FALSE);
/* Map the gdi handle table to user land */
/* map the gdi handle table to user land */
Process->Peb->GdiSharedHandleTable = GDI_MapHandleTable(Process); Process->Peb->GdiSharedHandleTable = GDI_MapHandleTable(Process);
Process->Peb->GdiDCAttributeList = GDI_BATCH_LIMIT; Process->Peb->GdiDCAttributeList = GDI_BATCH_LIMIT;
pParams = Process->Peb->ProcessParameters; pParams = Process->Peb->ProcessParameters;
ppiCurrent->peProcess = Process; ppiCurrent->peProcess = Process;
/* setup process flags */ /* Setup process flags */
ppiCurrent->W32PF_flags = W32PF_THREADCONNECTED; ppiCurrent->W32PF_flags = W32PF_THREADCONNECTED;
if ( pParams && if ( pParams &&
@ -150,7 +149,7 @@ CreateProcessInfo(PEPROCESS Process)
ppiCurrent->W32PF_flags |= W32PF_SCREENSAVER; ppiCurrent->W32PF_flags |= W32PF_SCREENSAVER;
} }
// Fixme check if this process is allowed. // FIXME: check if this process is allowed.
ppiCurrent->W32PF_flags |= W32PF_ALLOWFOREGROUNDACTIVATE; // Starting application it will get toggled off. ppiCurrent->W32PF_flags |= W32PF_ALLOWFOREGROUNDACTIVATE; // Starting application it will get toggled off.
/* Create pools for GDI object attributes */ /* Create pools for GDI object attributes */
@ -171,7 +170,7 @@ CreateProcessInfo(PEPROCESS Process)
static static
NTSTATUS NTSTATUS
DestroyProcessInfo(PEPROCESS Process) UserDestroyProcessInfo(PEPROCESS Process)
{ {
PPROCESSINFO ppiCurrent, *pppi; PPROCESSINFO ppiCurrent, *pppi;
@ -288,11 +287,11 @@ Win32kProcessCallback(struct _EPROCESS *Process,
if (Create) if (Create)
{ {
Status = CreateProcessInfo(Process); Status = UserCreateProcessInfo(Process);
} }
else else
{ {
Status = DestroyProcessInfo(Process); Status = UserDestroyProcessInfo(Process);
} }
UserLeave(); UserLeave();