From c7eafc3610b65eafe408d4959ded4c1aab44157a Mon Sep 17 00:00:00 2001 From: arpi Date: Fri, 13 Sep 2002 19:43:17 +0000 Subject: avifile sync - 95% cosmetics 5% bug git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7387 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/pe_image.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'loader/pe_image.c') diff --git a/loader/pe_image.c b/loader/pe_image.c index 30e7c34da2..9ac40ebeb2 100644 --- a/loader/pe_image.c +++ b/loader/pe_image.c @@ -34,7 +34,6 @@ * to 4096 byte boundaries on disk. */ #include "config.h" -//#include #include #include @@ -48,13 +47,13 @@ #ifdef HAVE_SYS_MMAN_H #include #endif -#include -#include -#include -#include -#include -#include -#include +#include "wine/windef.h" +#include "wine/winbase.h" +#include "wine/winerror.h" +#include "wine/heap.h" +#include "wine/pe_image.h" +#include "wine/module.h" +#include "wine/debugtools.h" #include "ext.h" #include "win32.h" @@ -68,7 +67,7 @@ extern void* LookupExternalByName(const char* library, const char* name); static void dump_exports( HMODULE hModule ) { char *Module; - int i, j; + unsigned int i, j; u_short *ordinal; u_long *function,*functions; u_char **name; @@ -125,7 +124,8 @@ FARPROC PE_FindExportedFunction( { u_short * ordinals; u_long * function; - u_char ** name, *ename = NULL; + u_char ** name; + const char *ename = NULL; int i, ordinal; PE_MODREF *pem = &(wm->binfmt.pe); IMAGE_EXPORT_DIRECTORY *exports = pem->pe_export; @@ -161,8 +161,8 @@ FARPROC PE_FindExportedFunction( while (min <= max) { int res, pos = (min + max) / 2; - ename = RVA(name[pos]); - if (!(res = strcmp( ename, funcName ))) + ename = (const char*) RVA(name[pos]); + if (!(res = strcmp( ename, funcName ))) { ordinal = ordinals[pos]; goto found; @@ -171,9 +171,9 @@ FARPROC PE_FindExportedFunction( else min = pos + 1; } - for (i = 0; i < exports->NumberOfNames; i++) + for (i = 0; i < exports->NumberOfNames; i++) { - ename = RVA(name[i]); + ename = (const char*) RVA(name[i]); if (!strcmp( ename, funcName )) { ERR( "%s.%s required a linear search\n", wm->modname, funcName ); -- cgit v1.2.3