mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[FORMATTING]
- Replace big file header with small header - apply consistent indentation of 4 spaces svn path=/trunk/; revision=49324
This commit is contained in:
parent
f69973e1e6
commit
a84fd28122
1 changed files with 339 additions and 353 deletions
|
@ -1,23 +1,9 @@
|
|||
/*
|
||||
* ReactOS W32 Subsystem
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 ReactOS Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
/*
|
||||
* Entry Point for win32k.sys
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* PURPOSE: Driver entry and initialization of win32k
|
||||
* FILE: subsystems/win32/win32k/main/main.c
|
||||
* PROGRAMER:
|
||||
*/
|
||||
|
||||
#include <win32k.h>
|
||||
|
@ -385,7 +371,7 @@ DriverEntry (
|
|||
* Register user mode call interface
|
||||
* (system service table index = 1)
|
||||
*/
|
||||
Result = KeAddSystemServiceTable (Win32kSSDT,
|
||||
Result = KeAddSystemServiceTable(Win32kSSDT,
|
||||
NULL,
|
||||
Win32kNumberOfSysCalls,
|
||||
Win32kSSPT,
|
||||
|
@ -398,9 +384,8 @@ DriverEntry (
|
|||
|
||||
hModuleWin = MmPageEntireDriver(DriverEntry);
|
||||
DPRINT("Win32k hInstance 0x%x!\n",hModuleWin);
|
||||
/*
|
||||
* Register Object Manager Callbacks
|
||||
*/
|
||||
|
||||
/* Register Object Manager Callbacks */
|
||||
CalloutData.WindowStationParseProcedure = IntWinStaObjectParse;
|
||||
CalloutData.WindowStationDeleteProcedure = IntWinStaObjectDelete;
|
||||
CalloutData.DesktopDeleteProcedure = IntDesktopObjectDelete;
|
||||
|
@ -408,11 +393,10 @@ DriverEntry (
|
|||
CalloutData.ThreadCallout = Win32kThreadCallback;
|
||||
CalloutData.BatchFlushRoutine = NtGdiFlushUserBatch;
|
||||
|
||||
/*
|
||||
* Register our per-process and per-thread structures.
|
||||
*/
|
||||
/* Register our per-process and per-thread structures. */
|
||||
PsEstablishWin32Callouts((PWIN32_CALLOUTS_FPNS)&CalloutData);
|
||||
|
||||
/* Create the global USER heap */
|
||||
GlobalUserHeap = UserCreateHeap(&GlobalUserHeapSection,
|
||||
&GlobalUserHeapBase,
|
||||
1 * 1024 * 1024); /* FIXME - 1 MB for now... */
|
||||
|
@ -422,6 +406,7 @@ DriverEntry (
|
|||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
/* Allocate global server info structure */
|
||||
if (!gpsi)
|
||||
{
|
||||
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
|
||||
|
@ -438,6 +423,7 @@ DriverEntry (
|
|||
|
||||
if(!hsemDriverMgmt) hsemDriverMgmt = EngCreateSemaphore();
|
||||
|
||||
/* Create the GDI handle table */
|
||||
GdiHandleTable = GDIOBJ_iAllocHandleTable(&GdiTableSection);
|
||||
if (GdiHandleTable == NULL)
|
||||
{
|
||||
|
@ -557,7 +543,7 @@ DriverEntry (
|
|||
}
|
||||
|
||||
/* Initialize FreeType library */
|
||||
if (! InitFontSupport())
|
||||
if (!InitFontSupport())
|
||||
{
|
||||
DPRINT1("Unable to initialize font support\n");
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
|
|
Loading…
Reference in a new issue