Author: tkreuzer
Date: Fri Aug 18 15:02:01 2017
New Revision: 75612
URL:
http://svn.reactos.org/svn/reactos?rev=75612&view=rev
Log:
[FTFD] Fix indentation
Modified:
trunk/reactos/win32ss/drivers/font/ftfd/rosglue.c
Modified: trunk/reactos/win32ss/drivers/font/ftfd/rosglue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/drivers/font/ftfd/…
==============================================================================
--- trunk/reactos/win32ss/drivers/font/ftfd/rosglue.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/drivers/font/ftfd/rosglue.c [iso-8859-1] Fri Aug 18 15:02:01
2017
@@ -41,45 +41,45 @@
void *
malloc(size_t Size)
{
- void *Object;
+ void *Object;
- Object = EngAllocMem(0, sizeof(size_t) + Size, TAG_FREETYPE);
- if (NULL != Object)
+ Object = EngAllocMem(0, sizeof(size_t) + Size, TAG_FREETYPE);
+ if (Object != NULL)
{
- *((size_t *) Object) = Size;
- Object = (void *)((size_t *) Object + 1);
+ *((size_t *)Object) = Size;
+ Object = (void *)((size_t *)Object + 1);
}
- return Object;
+ return Object;
}
void *
realloc(void *Object, size_t Size)
{
- void *NewObject;
- size_t CopySize;
+ void *NewObject;
+ size_t CopySize;
- NewObject = EngAllocMem(0, sizeof(size_t) + Size, TAG_FREETYPE);
- if (NULL != NewObject)
+ NewObject = EngAllocMem(0, sizeof(size_t) + Size, TAG_FREETYPE);
+ if (NewObject != NULL)
{
- *((size_t *) NewObject) = Size;
- NewObject = (void *)((size_t *) NewObject + 1);
- CopySize = *((size_t *) Object - 1);
- if (Size < CopySize)
- {
- CopySize = Size;
- }
- memcpy(NewObject, Object, CopySize);
- EngFreeMem((size_t *) Object - 1);
+ *((size_t *)NewObject) = Size;
+ NewObject = (void *)((size_t *)NewObject + 1);
+ CopySize = *((size_t *)Object - 1);
+ if (Size < CopySize)
+ {
+ CopySize = Size;
+ }
+ memcpy(NewObject, Object, CopySize);
+ EngFreeMem((size_t *)Object - 1);
}
- return NewObject;
+ return NewObject;
}
void
free(void *Object)
{
- EngFreeMem((size_t *) Object - 1);
+ EngFreeMem((size_t *)Object - 1);
}
/*
@@ -93,39 +93,34 @@
FILE *
fopen(const char *FileName, const char *Mode)
{
- DPRINT1("Freetype tries to open file %s\n", FileName);
-
- return NULL;
+ DPRINT1("Freetype tries to open file %s\n", FileName);
+ return NULL;
}
int
fseek(FILE *Stream, long Offset, int Origin)
{
- DPRINT1("Doubleplus ungood: freetype shouldn't fseek!\n");
-
- return -1;
+ DPRINT1("Doubleplus ungood: freetype shouldn't fseek!\n");
+ return -1;
}
long
ftell(FILE *Stream)
{
- DPRINT1("Doubleplus ungood: freetype shouldn't ftell!\n");
-
- return -1;
+ DPRINT1("Doubleplus ungood: freetype shouldn't ftell!\n");
+ return -1;
}
size_t
fread(void *Buffer, size_t Size, size_t Count, FILE *Stream)
{
- DPRINT1("Doubleplus ungood: freetype shouldn't fread!\n");
-
- return 0;
+ DPRINT1("Doubleplus ungood: freetype shouldn't fread!\n");
+ return 0;
}
int
fclose(FILE *Stream)
{
- DPRINT1("Doubleplus ungood: freetype shouldn't fclose!\n");
-
- return EOF;
+ DPRINT1("Doubleplus ungood: freetype shouldn't fclose!\n");
+ return EOF;
}