mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
minor cleanup
svn path=/trunk/; revision=8301
This commit is contained in:
parent
b45d1b24ec
commit
80c553b4b5
|
@ -41,4 +41,7 @@
|
||||||
#define TAG_GDITEXT TAG('T', 'X', 'T', 'O') /* text */
|
#define TAG_GDITEXT TAG('T', 'X', 'T', 'O') /* text */
|
||||||
#define TAG_FONT TAG('F', 'N', 'T', 'O') /* font entry */
|
#define TAG_FONT TAG('F', 'N', 'T', 'O') /* font entry */
|
||||||
|
|
||||||
|
/* misc */
|
||||||
|
#define TAG_DRIVER TAG('G', 'D', 'R', 'V') /* video drivers */
|
||||||
|
|
||||||
#endif /* _WIN32K_TAGS_H */
|
#endif /* _WIN32K_TAGS_H */
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: driver.c,v 1.35 2004/02/08 21:37:53 weiden Exp $
|
/* $Id: driver.c,v 1.36 2004/02/22 12:06:43 weiden Exp $
|
||||||
*
|
*
|
||||||
* GDI Driver support routines
|
* GDI Driver support routines
|
||||||
* (mostly swiped from Wine)
|
* (mostly swiped from Wine)
|
||||||
|
@ -34,12 +34,11 @@
|
||||||
#include <ddk/winddi.h>
|
#include <ddk/winddi.h>
|
||||||
#include <ddk/ntddvid.h>
|
#include <ddk/ntddvid.h>
|
||||||
#include <rosrtl/string.h>
|
#include <rosrtl/string.h>
|
||||||
|
#include <include/tags.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#define DRIVER_TAG TAG('G', 'D', 'R', 'V')
|
|
||||||
|
|
||||||
typedef struct _GRAPHICS_DRIVER
|
typedef struct _GRAPHICS_DRIVER
|
||||||
{
|
{
|
||||||
PWSTR Name;
|
PWSTR Name;
|
||||||
|
@ -53,7 +52,7 @@ static PGRAPHICS_DRIVER GenericDriver = 0;
|
||||||
|
|
||||||
BOOL DRIVER_RegisterDriver(LPCWSTR Name, PGD_ENABLEDRIVER EnableDriver)
|
BOOL DRIVER_RegisterDriver(LPCWSTR Name, PGD_ENABLEDRIVER EnableDriver)
|
||||||
{
|
{
|
||||||
PGRAPHICS_DRIVER Driver = ExAllocatePoolWithTag(NonPagedPool, sizeof(*Driver), DRIVER_TAG);
|
PGRAPHICS_DRIVER Driver = ExAllocatePoolWithTag(NonPagedPool, sizeof(*Driver), TAG_DRIVER);
|
||||||
DPRINT( "DRIVER_RegisterDriver( Name: %S )\n", Name );
|
DPRINT( "DRIVER_RegisterDriver( Name: %S )\n", Name );
|
||||||
if (!Driver) return FALSE;
|
if (!Driver) return FALSE;
|
||||||
Driver->ReferenceCount = 0;
|
Driver->ReferenceCount = 0;
|
||||||
|
@ -62,7 +61,7 @@ BOOL DRIVER_RegisterDriver(LPCWSTR Name, PGD_ENABLEDRIVER EnableDriver)
|
||||||
{
|
{
|
||||||
Driver->Name = ExAllocatePoolWithTag(PagedPool,
|
Driver->Name = ExAllocatePoolWithTag(PagedPool,
|
||||||
(wcslen(Name) + 1) * sizeof(WCHAR),
|
(wcslen(Name) + 1) * sizeof(WCHAR),
|
||||||
DRIVER_TAG);
|
TAG_DRIVER);
|
||||||
wcscpy(Driver->Name, Name);
|
wcscpy(Driver->Name, Name);
|
||||||
Driver->Next = DriverList;
|
Driver->Next = DriverList;
|
||||||
DriverList = Driver;
|
DriverList = Driver;
|
||||||
|
@ -118,7 +117,7 @@ PGD_ENABLEDRIVER DRIVER_FindDDIDriver(LPCWSTR Name)
|
||||||
{
|
{
|
||||||
Size += sizeof(DefaultExtension) - sizeof(WCHAR);
|
Size += sizeof(DefaultExtension) - sizeof(WCHAR);
|
||||||
}
|
}
|
||||||
FullName = ExAllocatePoolWithTag(PagedPool, Size, DRIVER_TAG);
|
FullName = ExAllocatePoolWithTag(PagedPool, Size, TAG_DRIVER);
|
||||||
if (NULL == FullName)
|
if (NULL == FullName)
|
||||||
{
|
{
|
||||||
DPRINT1("Out of memory\n");
|
DPRINT1("Out of memory\n");
|
||||||
|
|
Loading…
Reference in a new issue