mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
Small fixes
svn path=/trunk/; revision=2245
This commit is contained in:
parent
d9975bf64a
commit
aebc047c8c
1 changed files with 21 additions and 13 deletions
|
@ -24,6 +24,7 @@
|
|||
/* */
|
||||
/*************************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
|
||||
#include <freetype/config/ftconfig.h>
|
||||
#include <freetype/internal/ftdebug.h>
|
||||
|
@ -73,7 +74,8 @@
|
|||
{
|
||||
FT_UNUSED( memory );
|
||||
|
||||
/* return malloc( size ); FIXME */
|
||||
/* return malloc( size ); */
|
||||
return ExAllocatePool(NonPagedPool, size);
|
||||
}
|
||||
|
||||
|
||||
|
@ -106,7 +108,9 @@
|
|||
FT_UNUSED( memory );
|
||||
FT_UNUSED( cur_size );
|
||||
|
||||
/* return realloc( block, new_size ); FIXME */
|
||||
/* return realloc( block, new_size ); */
|
||||
ExFreePool(block);
|
||||
return ExAllocatePool(NonPagedPool, new_size);
|
||||
}
|
||||
|
||||
|
||||
|
@ -129,7 +133,8 @@
|
|||
{
|
||||
FT_UNUSED( memory );
|
||||
|
||||
/* free( block ); FIXME */
|
||||
/* free( block ); */
|
||||
ExFreePool(block);
|
||||
}
|
||||
|
||||
|
||||
|
@ -168,7 +173,9 @@
|
|||
static
|
||||
void ft_close_stream( FT_Stream stream )
|
||||
{
|
||||
/* fclose( STREAM_FILE( stream ) ); FIXME */
|
||||
DbgPrint("ftsystem.c: UNIMPLEMENTED CALL\n");
|
||||
|
||||
/* fclose( STREAM_FILE( stream ) ); */
|
||||
|
||||
stream->descriptor.pointer = NULL;
|
||||
stream->size = 0;
|
||||
|
@ -204,12 +211,11 @@
|
|||
{
|
||||
FILE* file;
|
||||
|
||||
|
||||
DbgPrint("ftsystem.c: UNIMPLEMENTED CALL\n");
|
||||
file = STREAM_FILE( stream );
|
||||
|
||||
/* fseek( file, offset, SEEK_SET ); FIXME */
|
||||
|
||||
/* return (unsigned long)fread( buffer, 1, count, file ); FIXME */
|
||||
/* fseek( file, offset, SEEK_SET ); */
|
||||
/* return (unsigned long)fread( buffer, 1, count, file ); */
|
||||
}
|
||||
|
||||
|
||||
|
@ -235,11 +241,12 @@
|
|||
{
|
||||
/* FILE* file; FIXME */
|
||||
|
||||
DbgPrint("ftsystem.c: UNIMPLEMENTED CALL\n");
|
||||
|
||||
if ( !stream )
|
||||
/* if ( !stream )
|
||||
return FT_Err_Invalid_Stream_Handle;
|
||||
|
||||
/* file = fopen( filepathname, "rb" );
|
||||
file = fopen( filepathname, "rb" );
|
||||
if ( !file )
|
||||
{
|
||||
FT_ERROR(( "FT_New_Stream:" ));
|
||||
|
@ -257,11 +264,11 @@
|
|||
stream->pos = 0;
|
||||
|
||||
stream->read = ft_io_stream;
|
||||
stream->close = ft_close_stream; FIXME */
|
||||
stream->close = ft_close_stream;
|
||||
|
||||
FT_TRACE1(( "FT_New_Stream:" ));
|
||||
FT_TRACE1(( " opened `%s' (%d bytes) successfully\n",
|
||||
filepathname, stream->size ));
|
||||
filepathname, stream->size )); */
|
||||
|
||||
return FT_Err_Ok;
|
||||
}
|
||||
|
@ -282,8 +289,9 @@
|
|||
{
|
||||
FT_Memory memory;
|
||||
|
||||
/* memory = (FT_Memory)malloc( sizeof ( *memory ) ); */
|
||||
|
||||
/* memory = (FT_Memory)malloc( sizeof ( *memory ) ); FIXME */
|
||||
memory = ExAllocatePool(NonPagedPool, sizeof(*memory));
|
||||
if ( memory )
|
||||
{
|
||||
memory->user = 0;
|
||||
|
|
Loading…
Reference in a new issue