diff options
author | uid56437 <none@none> | 2001-07-04 14:05:09 +0000 |
---|---|---|
committer | uid56437 <none@none> | 2001-07-04 14:05:09 +0000 |
commit | 0342d76c613911b282e14a1188326075d1d43bca (patch) | |
tree | 0547e6dd8fa7fa400a06d793642cd03855d6ccc5 /src/libw32dll/wine/pe_image.c | |
parent | 2806c8c5cd03db19886b75fa05b6e50d7d4815e1 (diff) | |
download | xine-lib-0342d76c613911b282e14a1188326075d1d43bca.tar.gz xine-lib-0342d76c613911b282e14a1188326075d1d43bca.tar.bz2 |
Add prototypes for all functions in wine/*, to catch __stdcall function
attribute mismatches between function prototypes and function definitions.
Such a __stdcall mismatch can corrupt the cpu's stack, because both the
caller and the callee clean up function parameter from the stack (or none
of them removes the function parameters)
wine/* should be less sensitive to optimzation options due to this change.
CVS patchset: 245
CVS date: 2001/07/04 14:05:09
Diffstat (limited to 'src/libw32dll/wine/pe_image.c')
-rw-r--r-- | src/libw32dll/wine/pe_image.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libw32dll/wine/pe_image.c b/src/libw32dll/wine/pe_image.c index 123f4ce7d..274813f13 100644 --- a/src/libw32dll/wine/pe_image.c +++ b/src/libw32dll/wine/pe_image.c @@ -34,10 +34,10 @@ * to 4096 byte boundaries on disk. */ #include "config.h" -#include "config.h" #include <errno.h> #include <assert.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -54,7 +54,7 @@ #include "pe_image.h" #include "module.h" #include "debugtools.h" - +#include "ext.h" #include "win32.h" #define RVA(x) ((void *)((char *)load_addr+(unsigned int)(x))) @@ -64,7 +64,7 @@ extern void* LookupExternal(const char* library, int ordinal); extern void* LookupExternalByName(const char* library, const char* name); -void dump_exports( HMODULE hModule ) +static void dump_exports( HMODULE hModule ) { char *Module; int i, j; @@ -236,7 +236,7 @@ FARPROC PE_FindExportedFunction( } } -DWORD fixup_imports( WINE_MODREF *wm ) +static DWORD fixup_imports( WINE_MODREF *wm ) { IMAGE_IMPORT_DESCRIPTOR *pe_imp; PE_MODREF *pem; |