newlib: pixlib2.h & minor update

git-svn-id: svn://kolibrios.org@3301 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2013-03-01 06:55:27 +00:00
parent 184ffd02ae
commit 14165c3cb3
7 changed files with 45 additions and 364 deletions
@@ -15,7 +15,7 @@ void *load_file(const char *path, size_t *len)
if( !get_fileinfo(path, &info) )
{
file = user_alloc( info.size );
file = (void*)user_alloc( info.size );
read_file(path, file, 0, info.size, &bytes );
if( bytes == info.size )
{
@@ -23,7 +23,7 @@ void *load_file(const char *path, size_t *len)
{
void *tmp = NULL;
info.size = ((size_t*)file)[1];
tmp = user_alloc(info.size);
tmp = (void*)user_alloc(info.size);
unpack(file, tmp);
user_free(file);
file = tmp;