Warning fixes.

This commit is contained in:
Alexandre Julliard 2005-01-03 17:15:37 +00:00
parent 0cc2031409
commit 42c5cde5cd
2 changed files with 3 additions and 1 deletions

View File

@ -276,7 +276,7 @@ static void dump_le_objects( const void *base, const IMAGE_VXD_HEADER *le )
pmap = &(pmap[pobj->o32_pagemap - 1]); pmap = &(pmap[pobj->o32_pagemap - 1]);
for (j = 0; j < pobj->o32_mapsize; j++) for (j = 0; j < pobj->o32_mapsize; j++)
{ {
printf(" %08x %06x %02x\n", printf(" %08lx %06x %02x\n",
pobj->o32_pagemap + j, pobj->o32_pagemap + j,
(pmap->o32_pagedataoffset << 8) + pmap->o32_pagesize, (pmap->o32_pagedataoffset << 8) + pmap->o32_pagesize,
(int)pmap->o32_pageflags); (int)pmap->o32_pageflags);

View File

@ -218,6 +218,8 @@ void dump_data( const unsigned char *ptr, unsigned int size, const char *prefix
void ne_dump( const void *exe, size_t exe_size ); void ne_dump( const void *exe, size_t exe_size );
void le_dump( const void *exe, size_t exe_size );
FILE *open_file (const char *name, const char *ext, const char *mode); FILE *open_file (const char *name, const char *ext, const char *mode);
#ifdef __GNUC__ #ifdef __GNUC__